Skip to content

Commit ee0a0ba

Browse files
committed
add dockerfile
1 parent 5a40d47 commit ee0a0ba

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

quickstart/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM python:3.12-slim
2+
3+
WORKDIR /app
4+
5+
RUN apt-get update && apt-get install -y
6+
7+
RUN pip install poetry
8+
9+
COPY pyproject.toml ./
10+
11+
COPY . .
12+
13+
# Configure poetry to not create virtual environment
14+
RUN poetry config virtualenvs.create false
15+
16+
# Install dependencies
17+
RUN poetry install --no-dev --no-interaction --no-ansi
18+
19+
# Expose port 80
20+
EXPOSE 80
21+
22+
CMD poetry run services

0 commit comments

Comments
 (0)