forked from SHSharkar/Laravel-Rsync-Deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (29 loc) · 1.07 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# FROM alpine:latest
# MAINTAINER MJA <[email protected]>
# RUN apt update
# RUN apt -yq install rsync openssh-client
# RUN apk update \
# && apk upgrade \
# && apk add --no-cache rsync openssh-client \
# && rm -rf /var/cache/apk/*
# Labels
# LABEL "com.github.actions.name"="Laravel Rsync Deploy"
# LABEL "com.github.actions.description"="Deploy Laravel developed project with Rsync"
# LABEL "com.github.actions.color"="blue"
# LABEL "com.github.actions.icon"="upload"
# LABEL "repository"="https://github.com/SHSharkar/Laravel-Rsync-Deploy"
# LABEL "homepage"="https://github.com/SHSharkar/Laravel-Rsync-Deploy"
# LABEL "maintainer"="Md. Sazzad Hossain Sharkar <[email protected]>"
# ADD entrypoint.sh /entrypoint.sh
# RUN chmod +x /entrypoint.sh
# ENTRYPOINT ["/entrypoint.sh"]
FROM alpine:latest
MAINTAINER MJA <[email protected]>
RUN apk update \
&& apk upgrade \
&& apk add --no-cache rsync openssh-client \
&& rm -rf /var/cache/apk/*
COPY entrypoint.sh /script/entrypoint.sh
WORKDIR /workspace
ENTRYPOINT ["/bin/sh", "/script/entrypoint.sh"]
CMD ["deploy"]