2024-01-16 20:52:51 +01:00
|
|
|
FROM nikolaik/python-nodejs:python3.10-nodejs20
|
2023-09-02 20:18:29 +02:00
|
|
|
|
|
|
|
ENV PATH "/root/.local/bin:$PATH"
|
2024-01-16 20:52:51 +01:00
|
|
|
ENV NODE_PATH "/usr/lib/node_modules:/usr/local/lib/node_modules"
|
2023-09-02 20:18:29 +02:00
|
|
|
|
2024-01-14 22:00:56 +01:00
|
|
|
RUN npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0 cssnano@^4.1.10 \
|
2023-09-02 20:18:29 +02:00
|
|
|
&& 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
|
|
|
|
|
2023-09-03 17:27:39 +02:00
|
|
|
RUN make publish
|