Spaces:
Paused
Paused
Vo Hoang Minh commited on
Commit ·
a539c9c
1
Parent(s): 54c0465
- Dockerfile +9 -4
Dockerfile
CHANGED
|
@@ -1,9 +1,5 @@
|
|
| 1 |
FROM nginx:latest
|
| 2 |
|
| 3 |
-
ENV PYTHONUNBUFFERED=1 \
|
| 4 |
-
PORT=8080 \
|
| 5 |
-
DEBIAN_FRONTEND=noninteractive \
|
| 6 |
-
DISPLAY=:0
|
| 7 |
|
| 8 |
# Install basic tools and Node.js
|
| 9 |
RUN apt-get update && \
|
|
@@ -30,6 +26,15 @@ RUN npm install
|
|
| 30 |
|
| 31 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
COPY entrypoint.sh /entrypoint.sh
|
| 34 |
RUN chmod +x /entrypoint.sh
|
| 35 |
|
|
|
|
| 1 |
FROM nginx:latest
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Install basic tools and Node.js
|
| 5 |
RUN apt-get update && \
|
|
|
|
| 26 |
|
| 27 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 28 |
|
| 29 |
+
RUN touch /var/run/nginx.pid && \
|
| 30 |
+
chown -R nginx:nginx /var/cache/nginx /var/run/nginx.pid
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
RUN mkdir -p /var/cache/nginx/client_temp && \
|
| 34 |
+
chown -R nginx:nginx /var/cache/nginx/client_temp
|
| 35 |
+
|
| 36 |
+
RUN chmod -R 777 /var/cache/nginx /var/run/nginx.pid /app
|
| 37 |
+
|
| 38 |
COPY entrypoint.sh /entrypoint.sh
|
| 39 |
RUN chmod +x /entrypoint.sh
|
| 40 |
|