projetAnsible/.vscode/roles/docker-compose/files/docker/backup.dockerfile
2024-12-12 22:11:27 +01:00

14 lines
391 B
Docker

# Use the Alpine image as the base
FROM alpine:latest as backup_custom
# Copy the entrypoint script into the container
COPY entrypoint_backup.sh /usr/local/bin/entrypoint_backup.sh
# Switch to root user for setup
USER root
# Make the entrypoint script executable
RUN chmod +x /usr/local/bin/entrypoint_backup.sh
# Set the new entrypoint
ENTRYPOINT ["/usr/local/bin/entrypoint_backup.sh"]