Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -7,4 +7,14 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 7 |
|
| 8 |
COPY . /code/
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
COPY . /code/
|
| 9 |
|
| 10 |
+
run mkdir -p /var/lib/nginx && chmod 777 /var/lib/nginx
|
| 11 |
+
run mkdir -p /var/log && chmod 777 /var/log
|
| 12 |
+
RUN mkdir -p /etc/nginx && mkdir -p /var/run && chmod 777 -R /var && chmod 777 -R /etc/nginx && chmod 777 -R /var/run
|
| 13 |
+
run mkdir -p /var/log/nginx
|
| 14 |
+
run touch /var/log/nginx/access.log && chmod 777 /var/log/nginx/access.log
|
| 15 |
+
run chmod 777 /var/log/nginx
|
| 16 |
+
|
| 17 |
+
RUN apt update && \
|
| 18 |
+
apt install -y nginx
|
| 19 |
+
|
| 20 |
+
CMD nginx -c /code/nginx.conf &&python app.py
|