-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2362cae
commit 49a2922
Showing
1 changed file
with
6 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
FROM --platform=linux/amd64 python:3.9-slim-buster | ||
FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim | ||
|
||
WORKDIR /app | ||
COPY pyproject.toml poetry.lock ./ | ||
RUN poetry install --without dev | ||
|
||
RUN pip install poetry | ||
COPY . . | ||
|
||
COPY pyproject.toml /app/pyproject.toml | ||
|
||
RUN poetry install --no-dev | ||
|
||
COPY . /app | ||
|
||
CMD ["poetry", "run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "80"] | ||
ENTRYPOINT ["poetry"] | ||
CMD ["run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "80"] |