14 lines
398 B
Docker
14 lines
398 B
Docker
# Use the Alpine image as the base
|
|
FROM alpine:latest as backup_custom
|
|
|
|
# Copy the entrypoint script into the container
|
|
COPY docker/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"] |