We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31add8 commit bf2045cCopy full SHA for bf2045c
Dockerfile
@@ -3,14 +3,19 @@ FROM python:3.10
3
WORKDIR /app
4
5
RUN useradd --create-home dpl && \
6
- pip install "poetry>=1.1.12,<2" && \
7
- poetry config virtualenvs.create false
+ mkdir -p /venv/ && \
+ chown -R dpl:dpl /venv/ /app/
8
+
9
+ENV PATH=/venv/bin:/home/dpl/.local/bin:$PATH \
10
+ VIRTUAL_ENV=/venv/ \
11
+ DJANGO_SETTINGS_MODULE=tests.settings.dev
12
13
+USER dpl
14
15
+RUN pip install --user "poetry>=1.1.12,<2" && \
16
+ python -m venv /venv/
17
18
COPY pyproject.toml ./
19
RUN poetry install --no-root
20
-ENV DJANGO_SETTINGS_MODULE=tests.settings.dev \
- PYTHONPATH=.
-
-USER dpl
21
CMD django-admin runserver 0.0.0.0:8000
0 commit comments