Skip to content

Commit

Permalink
fixes folder permissions on Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hermosillajelmy committed Jul 10, 2024
1 parent 16a2cd5 commit bbb56c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ FROM python:3.10-slim-buster as runtime
ENV VIRTUAL_ENV=/app/.venv \
PATH="/app/.venv/bin:$PATH"

# create runtime user; install required dependencies
RUN useradd --system --uid 1001 tesseract

WORKDIR /app

# create runtime user; install required dependencies
RUN useradd --system --uid 1001 tesseract &&\
chown -R tesseract:tesseract /app

COPY --chown=tesseract --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

COPY --chown=tesseract . /app
Expand Down

0 comments on commit bbb56c9

Please sign in to comment.