yuchen168 commited on
Commit
112f6ab
1 Parent(s): f7d2028

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FROM nginx:1.19.3-alpine
2
+ # FROM yuchen168/uwsgi-nginx-unprivileged
3
+ FROM yuchen168/uwsgi-nginx-unprivileged-python
4
+
5
+ COPY nginx.conf /etc/nginx/nginx.conf
6
+ COPY app.json /etc/uwsgi/app.json
7
+
8
+ # COPY MajesticAdmin-Free-Bootstrap-Admin-Template-master.zip /usr/local/html.zip
9
+ # WORKDIR /usr/local
10
+ # RUN mkdir html
11
+ # RUN unzip html.zip -o -d html
12
+
13
+ # COPY uwsgi /tmp/uwsgi
14
+ # RUN install -m 755 /tmp/uwsgi /usr/bin/uwsgi
15
+ # RUN rm /tmp/uwsgi
16
+ # RUN /usr/bin/uwsgi -config=/etc/uwsgi/app.json
17
+
18
+
19
+ # ENV PORT=7860
20
+ EXPOSE 7860
21
+
22
+ # CMD ["nginx", "-g", "daemon off;"]
23
+ # nginx -g 'daemon off;'
24
+
25
+ ADD app.sh /
26
+ RUN chmod +x /app.sh
27
+ CMD /app.sh