Skip to content

Commit

Permalink
Adds no lock in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmcdonnell committed Aug 26, 2024
1 parent 8d21774 commit 03d5ab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ RUN apt update \
WORKDIR /usr/src/api
EXPOSE 8000
COPY . .
RUN pdm install --no-lock --prod
RUN pdm install --prod
CMD ["/usr/src/api/.venv/bin/uvicorn", "src.ssm_file_converter.app:app", "--host=0.0.0.0"]

# Development
FROM production AS development
COPY . .
RUN pdm install --no-lock -G:all
CMD ["pdm", "run", "uvicorn", "src.ssm_file_converter.app:app", "--host=0.0.0.0"]

0 comments on commit 03d5ab8

Please sign in to comment.