Spaces:
Running
Running
BinaryONe
commited on
Commit
·
22c074f
1
Parent(s):
0794f3c
Nginx Changes-Over Alpine
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -2,7 +2,7 @@ FROM alpine:latest
|
|
2 |
|
3 |
# Install system dependencies, including shadow-utils for adduser
|
4 |
RUN apk update && apk upgrade && \
|
5 |
-
apk add --no-cache nginx python3 py3-pip build-base libffi-dev openssl-dev shadow gcc musl-dev
|
6 |
|
7 |
# Install python/pip
|
8 |
#ENV PYTHONUNBUFFERED=1
|
@@ -32,7 +32,8 @@ RUN python3 -m venv /app/venv && \
|
|
32 |
/app/venv/bin/pip install --no-cache-dir -r /app/requirements.txt
|
33 |
|
34 |
# Activate the virtual environment (important!)
|
35 |
-
|
|
|
36 |
|
37 |
# Install Python dependencies from the requirements file within the virtual environment
|
38 |
#RUN py3-pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
2 |
|
3 |
# Install system dependencies, including shadow-utils for adduser
|
4 |
RUN apk update && apk upgrade && \
|
5 |
+
apk add --no-cache nginx python3 python3-dev py3-pip build-base libffi-dev openssl-dev shadow gcc musl-dev
|
6 |
|
7 |
# Install python/pip
|
8 |
#ENV PYTHONUNBUFFERED=1
|
|
|
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 |
+
RUN python --version && pip list
|
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
|