Skip to content

Commit

Permalink
Update docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 14, 2024
1 parent a479556 commit 141be59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
3 changes: 1 addition & 2 deletions backend/Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ RUN groupadd owasp && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
python -m pip install --no-cache-dir poetry

ENV PYTHONUNBUFFERED=1 \
POETRY_NO_INTERACTION=1
ENV PYTHONUNBUFFERED=1

EXPOSE 8000

Expand Down
8 changes: 3 additions & 5 deletions backend/Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ RUN groupadd owasp && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
python -m pip install --no-cache-dir poetry

ENV PYTHONUNBUFFERED=1 \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false
ENV PYTHONUNBUFFERED=1

WORKDIR /home/owasp

USER owasp

COPY apps apps
COPY manage.py poetry.lock pyproject.toml wsgi.py ./
COPY settings settings
COPY static static
COPY templates templates

RUN poetry install --no-root --without dev --without test

USER owasp
8 changes: 3 additions & 5 deletions backend/Dockerfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ RUN groupadd owasp && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
python -m pip install --no-cache-dir poetry

ENV PYTHONUNBUFFERED=1 \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false
ENV PYTHONUNBUFFERED=1

WORKDIR /home/owasp

USER owasp

COPY .env/template .env/template
COPY apps apps
COPY manage.py poetry.lock pyproject.toml wsgi.py ./
Expand All @@ -23,5 +23,3 @@ COPY templates templates
COPY tests tests

RUN poetry install --no-root

USER owasp

0 comments on commit 141be59

Please sign in to comment.