-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 1011 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 ubuntu:22.04
RUN apt-get update && \
apt-get install \
openssh-client \
curl \
zip \
-y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN mkdir -p --mode=0755 /usr/share/keyrings \
&& curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null \
&& echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared jammy main' | tee /etc/apt/sources.list.d/cloudflared.list \
&& apt-get update && apt-get install cloudflared -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
COPY /opt/deploy-docker-to-compose-host.sh /opt/deploy-docker-to-compose-host.sh
RUN chmod +x /opt/deploy-docker-to-compose-host.sh
COPY /opt/makeProdEnv.sh /opt/makeProdEnv.sh
RUN chmod +x /opt/makeProdEnv.sh
RUN mkdir -p /work \
chmod 777 /work
WORKDIR /work
ENTRYPOINT ["/opt/deploy-docker-to-compose-host.sh"]