2022-03-27 23:24:59 +02:00
|
|
|
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 && \
|
2022-05-10 03:00:56 +02:00
|
|
|
poetry install --no-dev
|
2022-03-27 23:24:59 +02:00
|
|
|
|
|
|
|
COPY main.py /app/
|
|
|
|
COPY static/ /app/static/
|
|
|
|
COPY templates/ /app/templates/
|
|
|
|
|
2022-11-21 02:53:55 +01:00
|
|
|
ENTRYPOINT ["poetry", "run", "uvicorn", "fabcal.app:app", "--host", "0.0.0.0", "--port", "5000", "--use-colors"]
|