-
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.
Merge branch 'main' into feature/19_add_github_actions
- Loading branch information
Showing
6 changed files
with
49 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use this Dockerfile if you are using a Mac with an Apple chip | ||
|
||
FROM python:3.11-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN apk add --update --no-cache --virtual .tmp-build-deps \ | ||
gcc libc-dev linux-headers postgresql-dev \ | ||
&& apk add libffi-dev | ||
|
||
RUN pip install poetry | ||
|
||
COPY poetry.lock pyproject.toml ./ | ||
|
||
RUN poetry config virtualenvs.create false | ||
RUN poetry install --no-root | ||
|
||
COPY ./src ./ | ||
|
||
EXPOSE 8888 | ||
|
||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8888"] |
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
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
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
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
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