fabcal/Dockerfile
burned42 2d90b57235 fix docker image build by using python 3.13 base image
I'm not sure why this fixes the image build, but I found others on the internet suggesting that using "the current" version image fixes this kind of issue and it indeed fixed the issue and I was able to build the image with this adjustment.
2025-02-07 23:27:24 +01:00

24 lines
513 B
Docker

FROM python:3.13-alpine
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
USER fabcal
COPY poetry.lock pyproject.toml package.json yarn.lock /app/
WORKDIR /app/
RUN poetry install --only main && \
yarn install
COPY fabcal /app/fabcal/
COPY static/ /app/static/
COPY templates/ /app/templates/
ENTRYPOINT ["poetry", "run", "uvicorn", "fabcal.app:app", "--host", "0.0.0.0", "--port", "5000", "--use-colors"]