thisisishara
commited on
Commit
•
ee09914
1
Parent(s):
45187b8
alter nginx config location
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -2,13 +2,14 @@
|
|
2 |
FROM python:3.10
|
3 |
|
4 |
# Set the working directory
|
|
|
5 |
WORKDIR /app
|
6 |
|
7 |
# Install NGINX
|
8 |
RUN apt-get update && apt-get install -y nginx
|
9 |
|
10 |
-
# Copy
|
11 |
-
COPY nginx.conf /etc/nginx/
|
12 |
|
13 |
# Install dependencies
|
14 |
COPY requirements.txt .
|
|
|
2 |
FROM python:3.10
|
3 |
|
4 |
# Set the working directory
|
5 |
+
USER root
|
6 |
WORKDIR /app
|
7 |
|
8 |
# Install NGINX
|
9 |
RUN apt-get update && apt-get install -y nginx
|
10 |
|
11 |
+
# Copy nginx configuration
|
12 |
+
COPY nginx.conf /etc/nginx/sites-available/default
|
13 |
|
14 |
# Install dependencies
|
15 |
COPY requirements.txt .
|