# 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"]
