File size: 623 Bytes
112f6ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# FROM nginx:1.19.3-alpine
# FROM yuchen168/uwsgi-nginx-unprivileged
FROM yuchen168/uwsgi-nginx-unprivileged-python

COPY nginx.conf /etc/nginx/nginx.conf
COPY app.json /etc/uwsgi/app.json

# COPY MajesticAdmin-Free-Bootstrap-Admin-Template-master.zip /usr/local/html.zip
# WORKDIR /usr/local
# RUN mkdir html
# RUN unzip html.zip -o -d html

# COPY uwsgi /tmp/uwsgi
# RUN install -m 755 /tmp/uwsgi /usr/bin/uwsgi
# RUN rm /tmp/uwsgi
# RUN /usr/bin/uwsgi -config=/etc/uwsgi/app.json


# ENV PORT=7860
EXPOSE 7860

# CMD ["nginx", "-g", "daemon off;"]
# nginx -g 'daemon off;'

ADD app.sh /
RUN chmod +x /app.sh
CMD /app.sh