18 lines
380 B
Docker
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
|