Skip to content

Commit

Permalink
Added Dockerfile apk add command (#17)
Browse files Browse the repository at this point in the history
* Added Dockerfile apk add command

Added Dockerfile apk add command that adds several dependencies

* Dockerfile Changes

Changes:

- [chore] Reverted the Dockerfile to the original version
- [feat] Created a 'Dockerfile.mac_chip' for Mac users with an Apple chip
  • Loading branch information
shindigira authored Aug 29, 2023
1 parent e8516f5 commit 3e653cc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile.mac_chip
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"]

0 comments on commit 3e653cc

Please sign in to comment.