Skip to content

Commit e8833d5

Browse files
committed
update Dockerfile backend
1 parent 6373ca7 commit e8833d5

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

backend/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM python:3.12-slim
2+
3+
WORKDIR /app
4+
5+
COPY pyproject.toml poetry.lock ./
6+
RUN pip install --upgrade pip && pip install poetry \
7+
&& poetry config virtualenvs.create false \
8+
&& poetry install --no-dev
9+
10+
COPY app ./app
11+
12+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

deploy/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ------------------------
2+
# Docker
3+
# ------------------------
4+
docker-compose.override.yml
5+
docker-compose.override.*.yml
6+
*.log
7+
*.pid
8+
*.sock
9+
docker-compose.override.yml
10+
*.tmp

0 commit comments

Comments
 (0)