Skip to content

Commit

Permalink
feat: update Dockerfile to integrate alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 committed Nov 29, 2023
1 parent c485d78 commit b0e9040
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
FROM python:3.11-alpine

WORKDIR /usr/src/app
WORKDIR /usr/app

RUN pip install poetry

COPY poetry.lock pyproject.toml ./
COPY poetry.lock pyproject.toml alembic.ini ./

RUN poetry config virtualenvs.create false
RUN poetry install --no-root

COPY ./src ./
COPY ./src ./src
COPY ./db_revisions ./db_revisions

WORKDIR /usr/app/src

EXPOSE 8888

Expand Down
9 changes: 6 additions & 3 deletions Dockerfile.mac_chip
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@

FROM python:3.11-alpine

WORKDIR /usr/src/app
WORKDIR /usr/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 ./
COPY poetry.lock pyproject.toml alembic.ini ./

RUN poetry config virtualenvs.create false
RUN poetry install --no-root

COPY ./src ./
COPY ./src ./src
COPY ./db_revisions ./db_revisions

WORKDIR /usr/app/src

EXPOSE 8888

Expand Down

0 comments on commit b0e9040

Please sign in to comment.