2020-01-07 10:54:51 +01:00
|
|
|
FROM nikolaik/python-nodejs:python3.7-nodejs10
|
|
|
|
|
|
|
|
ENV PATH "/root/.local/bin:$PATH"
|
|
|
|
ENV NODE_PATH="/usr/lib/node_modules"
|
2019-09-04 20:50:53 +02:00
|
|
|
|
2019-09-11 12:44:51 +02:00
|
|
|
ARG siteurl
|
|
|
|
ENV SITEURL=$siteurl
|
|
|
|
|
2019-10-27 12:53:08 +01:00
|
|
|
RUN npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0
|
2019-09-04 20:50:53 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y libjpeg-progs optipng \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
WORKDIR /code/homepage
|
2020-01-07 10:54:51 +01:00
|
|
|
COPY ./homepage/requirements.txt /code/homepage/requirements.txt
|
2019-09-04 20:50:53 +02:00
|
|
|
RUN pip install --user -r requirements.txt
|
|
|
|
|
2020-01-07 10:54:51 +01:00
|
|
|
COPY ./homepage /code/homepage
|
|
|
|
RUN make publish && rm -rf output/theme/.webassets-cache
|