feat: Add docker image

This commit is contained in:
2024-01-29 15:22:39 +11:00
parent 735bd68302
commit 98004cd1ac
2 changed files with 58 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM --platform=$BUILDPLATFORM python:3.10-alpine AS builder
WORKDIR /app
COPY requirements.txt /app
RUN --mount=type=cache,target=/root/.cache/pip \
pip3 install -r requirements.txt
COPY . /app
# Add mount point for data volume
# VOLUME /data
ENTRYPOINT ["python3"]
CMD ["server.py"]
FROM builder as dev-envs