fabcal/Dockerfile

24 lines
513 B
Docker
Raw Permalink Normal View History

2023-02-18 13:30:57 +01:00
FROM python:3.10-alpine
2022-03-27 23:24:59 +02:00
RUN adduser -S fabcal
RUN apk add --no-cache build-base libuv-dev libffi-dev yarn && \
pip3 install -U poetry
RUN install -d -o fabcal /app
2022-03-27 23:24:59 +02:00
USER fabcal
COPY poetry.lock pyproject.toml package.json yarn.lock /app/
2022-03-27 23:24:59 +02:00
WORKDIR /app/
RUN poetry install --only main && \
yarn install
2022-03-27 23:24:59 +02:00
2022-11-21 03:08:19 +01:00
COPY fabcal /app/fabcal/
2022-03-27 23:24:59 +02:00
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"]