Skip to content

Commit

Permalink
fix dir
Browse files Browse the repository at this point in the history
  • Loading branch information
emmpaul committed Sep 17, 2024
1 parent 41e773a commit 8ea2ec7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM python:3.10-slim

WORKDIR /code
WORKDIR /app

RUN useradd -m python

USER python

ENV PATH="/home/python/.local/bin:${PATH}"

COPY requirements.txt ./
Expand All @@ -14,7 +12,9 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY --chown=python:python . .

RUN mkdir -p routes
RUN mkdir -p /app/routes && chown -R python:python /app/routes

USER python

EXPOSE 5000

Expand Down

0 comments on commit 8ea2ec7

Please sign in to comment.