Files
wl 896dcfc555 feat: Add rsync filtering and optimize SFTP deployment process
- Introduced rsync support with customizable `rsyncArgs` for file filtering.
- Ensured only filtered content is uploaded, avoiding `filtered_upload` folder inclusion.
- Updated documentation to reflect the latest changes and usage examples.
2024-12-31 11:39:56 +08:00

12 lines
391 B
Docker

# Use an up-to-date and secure Alpine version
FROM alpine:3.18
# Install required packages in one RUN statement to reduce image layers
RUN apk update && apk add --no-cache rsync sshpass openssh
# Copy entrypoint script and set correct permissions
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set the entrypoint for the container
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]