Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 918e919

Browse files
committed
Add Dockerfile
1 parent d471019 commit 918e919

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.4
2+
3+
ARG PYTHON_VERSION=3.10
4+
5+
FROM scratch AS app
6+
COPY . /dist
7+
8+
FROM python:${PYTHON_VERSION}-slim
9+
10+
RUN --mount=type=bind,from=app,source=/dist,target=/dist,rw \
11+
pip install --upgrade --no-cache -e /dist && \
12+
mkdir -p /app && \
13+
cp -r /dist/src/* /app
14+
15+
WORKDIR /app
16+
EXPOSE 5000
17+
ENTRYPOINT ["flask", "run", "--host", "0.0.0.0"]

0 commit comments

Comments
 (0)