mirror of
https://github.com/offen/website.git
synced 2024-11-24 18:00:27 +01:00
23 lines
672 B
Docker
23 lines
672 B
Docker
FROM nikolaik/python-nodejs:python3.7-nodejs10
|
|
|
|
ENV PATH "/root/.local/bin:$PATH"
|
|
ENV NODE_PATH="/usr/lib/node_modules"
|
|
|
|
ARG siteurl
|
|
ENV SITEURL=$siteurl
|
|
ARG offenaccountid
|
|
ENV OFFEN_ACCOUNT_ID=$offenaccountid
|
|
|
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
|
RUN npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0
|
|
RUN apt-get update \
|
|
&& apt-get install -y libjpeg-progs optipng \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /code/homepage
|
|
COPY ./homepage/requirements.txt /code/homepage/requirements.txt
|
|
RUN pip install --user -r requirements.txt
|
|
|
|
COPY ./homepage /code/homepage
|
|
RUN make publish && rm -rf output/theme/.webassets-cache
|