BinaryONe commited on
Commit ·
f1f2ead
1
Parent(s): dd4448e
Nginx Changes
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -31,9 +31,13 @@ RUN python3 -m venv /app/venv && \
|
|
| 31 |
/app/venv/bin/pip install --no-cache-dir --upgrade pip && \
|
| 32 |
/app/venv/bin/pip install --no-cache-dir -r /app/requirements.txt
|
| 33 |
|
|
|
|
|
|
|
| 34 |
# Activate the virtual environment (important!)
|
| 35 |
RUN source /app/venv/bin/activate
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
|
| 38 |
# Install Python dependencies from the requirements file within the virtual environment
|
| 39 |
#RUN py3-pip install --no-cache-dir --upgrade -r requirements.txt
|
|
@@ -42,7 +46,7 @@ RUN python --version && pip list
|
|
| 42 |
# Create necessary directories and set correct permissions
|
| 43 |
RUN mkdir -p /var/www/html /var/log/nginx && \
|
| 44 |
chown -R nginx:nginx /var/log/nginx && \
|
| 45 |
-
chown -R appuser:appgroup /app /var/www/html
|
| 46 |
|
| 47 |
# Set ownership of the app directory
|
| 48 |
#RUN chown -R appuser:appgroup /app
|
|
|
|
| 31 |
/app/venv/bin/pip install --no-cache-dir --upgrade pip && \
|
| 32 |
/app/venv/bin/pip install --no-cache-dir -r /app/requirements.txt
|
| 33 |
|
| 34 |
+
#Before
|
| 35 |
+
RUN python --version && pip3 list
|
| 36 |
# Activate the virtual environment (important!)
|
| 37 |
RUN source /app/venv/bin/activate
|
| 38 |
+
|
| 39 |
+
#After
|
| 40 |
+
RUN python --version && pip3 list
|
| 41 |
|
| 42 |
# Install Python dependencies from the requirements file within the virtual environment
|
| 43 |
#RUN py3-pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
| 46 |
# Create necessary directories and set correct permissions
|
| 47 |
RUN mkdir -p /var/www/html /var/log/nginx && \
|
| 48 |
chown -R nginx:nginx /var/log/nginx && \
|
| 49 |
+
chown -R appuser:appgroup /app /var/www/html /var/log/nginx
|
| 50 |
|
| 51 |
# Set ownership of the app directory
|
| 52 |
#RUN chown -R appuser:appgroup /app
|