-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (23 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
42 lines (23 loc) · 782 Bytes
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
FROM nginx:mainline-alpine-slim
LABEL maintainer="qasemt@gmail.net"
LABEL version="0.1"
EXPOSE 8080
USER root
ENV myapp=/usr/local/myapp/
RUN mkdir -p $myapp
RUN apk update && \
apk upgrade && \
apk add --no-cache supervisor wget curl openssl libqrencode jq unzip tzdata bash nano
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh $myapp
## INSTLL
##apk del wget unzip && \
RUN chmod a+x "${myapp}entrypoint.sh" && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/* && \
echo "NGINX PROXY STREAM FOR CF " > ${myapp}info
WORKDIR $myapp
RUN sh entrypoint.sh
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
#ENTRYPOINT ["tail", "-f", "/dev/null"]