fablab-bottle-clip-generator/Dockerfile
2023-05-23 13:19:28 +02:00

18 lines
380 B
Docker

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