Initial commit
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
|
Reference in New Issue
Block a user