-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
29 lines (20 loc) · 895 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM php:7.4-cli-alpine
LABEL "repository" = "https://github.com/musps/action-deployer-php"
LABEL "homepage" = "https://github.com/musps/action-deployer-php"
LABEL "com.github.actions.name"="Action - Deployer php"
LABEL "com.github.actions.description"="Use your Deployer PHP script with your github action workflow."
LABEL "com.github.actions.icon"="server"
LABEL "com.github.actions.color"="yellow"
ENV DEPLOYER_VERSION=6.8.0
RUN apk update --no-cache \
&& apk add --no-cache \
bash \
openssh-client \
rsync
# Change default shell to bash (needed for conveniently adding an ssh key)
RUN sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd
RUN curl -L https://deployer.org/releases/v$DEPLOYER_VERSION/deployer.phar > /usr/local/bin/deployer \
&& chmod +x /usr/local/bin/deployer
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]