Skip to content

Commit be07853

Browse files
Merge pull request #119 from restackio/quickDocker
quickstart add dockerfile
2 parents 5a40d47 + ee0a0ba commit be07853

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)