Spaces:
Running
on
A10G
Running
on
A10G
Commit
•
d6db155
1
Parent(s):
bf284f1
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -10,14 +10,13 @@ RUN chown -R user:user /app || true
|
|
10 |
USER root
|
11 |
RUN mkdir /data && chown user:user /data
|
12 |
|
|
|
|
|
|
|
|
|
13 |
#######################################
|
14 |
# End root user section
|
15 |
#######################################
|
16 |
|
17 |
USER user
|
18 |
|
19 |
-
# Modify nginx.conf as user
|
20 |
-
RUN sed -i 's/listen \(\[::\]:\)\?80 default_server;/listen \17860 default_server;/g' /app/nginx.conf
|
21 |
-
|
22 |
-
# Print the contents of nginx.conf for checking
|
23 |
-
RUN cat /app/nginx.conf
|
|
|
10 |
USER root
|
11 |
RUN mkdir /data && chown user:user /data
|
12 |
|
13 |
+
RUN sed -i 's/listen \(\[::\]:\)\?80 default_server;/listen \17860 default_server;/g' /etc/nginx/nginx.conf
|
14 |
+
|
15 |
+
RUN cat /etc/nginx/nginx.conf
|
16 |
+
|
17 |
#######################################
|
18 |
# End root user section
|
19 |
#######################################
|
20 |
|
21 |
USER user
|
22 |
|
|
|
|
|
|
|
|
|
|