website/build/Dockerfile
Frederik Ring 8e26edd64f
Some checks failed
Build / build (push) Failing after 1m31s
Force downgrade npm to last known working version
2024-01-14 21:56:33 +01:00

22 lines
571 B
Docker

FROM nikolaik/python-nodejs:python3.10-nodejs20
ENV PATH "/root/.local/bin:$PATH"
ENV NODE_PATH "/usr/lib/node_modules"
RUN npm i -g npm@9.8.0 && npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0 cssnano@^4.1.10 \
&& apt-get update \
&& apt-get install -y libjpeg-progs optipng \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code/website
COPY ./website/requirements.txt /code/website/requirements.txt
RUN pip install --user -r requirements.txt
COPY ./website /code/website
COPY ./build /code/build
ARG siteurl
ENV SITEURL=$siteurl
RUN make publish