mirror of
https://gitee.com/jack_whh/SFTP-Deploy-Action.git
synced 2026-03-09 23:12:55 +08:00
16 lines
425 B
Docker
16 lines
425 B
Docker
# Container image that runs your code
|
|
FROM alpine:3.13
|
|
|
|
# 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"]
|