Skip to content

Commit

Permalink
Fix security issues in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed May 1, 2024
1 parent bcc40f2 commit dcb1321
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ ENV PATH="/app/.venv/bin:$PATH"

FROM project-base AS development

COPY . .
COPY ./tad/ ./tad/
COPY ./tests/ ./tests/
COPY ./script/ ./script/
COPY ./README.md ./README.md
RUN poetry install

FROM development AS lint
Expand All @@ -44,7 +47,9 @@ RUN coverage report

FROM project-base AS production

COPY ./tad /app/tad
USER tad

COPY --chown=root:root --chmod=755 ./tad /app/tad

# change this to a usefull command
CMD ["python", "-m", "tad" ]

0 comments on commit dcb1321

Please sign in to comment.