fix: Add dockerfile
All checks were successful
Build Docker / Build Image (push) Successful in 44s

This commit is contained in:
2024-01-11 18:23:57 +11:00
parent 202455fd2e
commit 4586929e84

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 ["main.py"]
FROM builder as dev-envs