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