Serve CSS dependencies from local webserver

Privacy improvement.
This commit is contained in:
2022-11-21 19:40:26 +01:00
parent eab91b7272
commit 5d58ba89c4
7 changed files with 48 additions and 13 deletions

View File

@ -2,17 +2,19 @@ FROM python:3.8-alpine
RUN adduser -S fabcal
RUN apk add --no-cache build-base libuv-dev libffi-dev && \
pip3 install poetry
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 /app/
COPY poetry.lock pyproject.toml package.json yarn.lock /app/
WORKDIR /app/
RUN pip install -U poetry && \
poetry install --only main
RUN poetry install --only main && \
yarn install
COPY fabcal /app/fabcal/
COPY static/ /app/static/