mirror of
https://github.com/offen/website.git
synced 2024-11-22 01:00:26 +01:00
do not rebuild layers on changing args
This commit is contained in:
parent
f37eb3a4bc
commit
7adf8f7118
@ -3,10 +3,6 @@ FROM nikolaik/python-nodejs:python3.7-nodejs12
|
||||
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 cssnano@^4.1.10
|
||||
@ -19,4 +15,10 @@ COPY ./homepage/requirements.txt /code/homepage/requirements.txt
|
||||
RUN pip install --user -r requirements.txt
|
||||
|
||||
COPY ./homepage /code/homepage
|
||||
|
||||
ARG siteurl
|
||||
ENV SITEURL=$siteurl
|
||||
ARG offenaccountid
|
||||
ENV OFFEN_ACCOUNT_ID=$offenaccountid
|
||||
|
||||
RUN make publish && rm -rf output/theme/.webassets-cache
|
||||
|
Loading…
Reference in New Issue
Block a user