Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Add dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
msathieu committed Mar 14, 2024
1 parent a4bcd8e commit 3318d22
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.12-slim
EXPOSE 8000
COPY . /backend
WORKDIR /backend
RUN pip install -r requirements.txt
CMD uvicorn --host 0.0.0.0 app:app
7 changes: 7 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:20 AS builder
COPY . /app
WORKDIR /app
RUN npm install
RUN npm run build
FROM nginx
COPY --from=builder /app/dist /usr/share/nginx/html
3 changes: 3 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3318d22

Please sign in to comment.