Initial commit
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@ -0,0 +1,21 @@
|
||||
FROM python:3.8-alpine
|
||||
|
||||
RUN adduser -S fabcal
|
||||
|
||||
RUN apk add --no-cache build-base libuv-dev libffi-dev && \
|
||||
pip3 install poetry
|
||||
|
||||
USER fabcal
|
||||
|
||||
COPY poetry.lock pyproject.toml /app/
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
RUN pip install -U poetry && \
|
||||
poetry install
|
||||
|
||||
COPY main.py /app/
|
||||
COPY static/ /app/static/
|
||||
COPY templates/ /app/templates/
|
||||
|
||||
ENTRYPOINT ["poetry", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000", "--use-colors"]
|
Reference in New Issue
Block a user