Fix hugo environment for robots.txt in not-prod

This commit is contained in:
Vincent Fiduccia
2018-07-17 15:43:23 -07:00
parent a6b67d2bb0
commit cdc400d1e5
4 changed files with 3 additions and 20 deletions
+1 -3
View File
@@ -1,10 +1,10 @@
FROM rancher/docs:build as build
ENV HUGO_ENV staging
WORKDIR /run
COPY gulpfile.babel.js /run/
COPY .eslintrc.js /run/
COPY config.toml /run/
COPY netlify.toml /run/
COPY archetypes archetypes
COPY data data
COPY layouts layouts
@@ -12,8 +12,6 @@ COPY scripts scripts
COPY content content
COPY src src
ENV HUGO_ENV production
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz master.tar.gz
RUN tar -xzf master.tar.gz --strip 1 -C /run/node_modules/rancher-website-theme && rm master.tar.gz