Initial commit

This commit is contained in:
2023-05-23 13:19:28 +02:00
commit 8f841fe3a3
19 changed files with 25627 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM python:3.11-alpine
RUN apk add poetry && \
apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ openscad
# switch users
RUN adduser -S app && \
install -D -d -o app /app \
USER app
WORKDIR /app
COPY pyproject.toml poetry.lock README.md /app/
COPY app/ /app/app/
RUN poetry install
CMD poetry run uvicorn --host 0.0.0.0 --port 8000 app.app:app