mirror of
https://github.com/wlixcc/SFTP-Deploy-Action.git
synced 2026-09-25 14:18:32 +00:00
- 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.
12 lines
391 B
Docker
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"] |