Files
SFTP-Deploy-Action/Dockerfile
JackWhh 90843aab03 1
Signed-off-by: JackWhh <5264499+jack_whh@user.noreply.gitee.com>
2024-07-18 07:30:13 +00:00

19 lines
590 B
Docker

# Container image that runs your code
FROM alpine:3.13
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/main" > /etc/apk/repositories
RUN echo "http://mirrors.aliyun.com/alpine/v3.13/community" >> /etc/apk/repositories
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
#Make sure to make you entrypoint.sh file executable:
RUN chmod 777 entrypoint.sh
RUN apk update
RUN apk add --no-cache openssh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]