Skip to content

Commit

Permalink
modify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed May 27, 2024
1 parent b70fc95 commit 3c1e14d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ FROM "docker.io/library/python:${PYTHON_VERSION}-slim-${PYTHON_DIST}" as runtime

# Configure entrypoint
ENTRYPOINT ["/usr/bin/env"]
CMD [ "fastapi", "run", "main.py" ]

# Configure runtime environment variables
ENV PATH="/app/.venv/bin:${PATH}"
Expand All @@ -40,4 +39,5 @@ WORKDIR /app
COPY --from=builder /app/.venv .venv
ADD ./ .

RUN prisma db push
RUN chmod +x ./start.sh
CMD [ "./start.sh" ]
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
prisma db push
fastapi run main.py

0 comments on commit 3c1e14d

Please sign in to comment.