Try to fix build by providing default env vars

This commit is contained in:
Grzegorz Leoniec 2019-01-12 14:48:03 +01:00
parent f6b5516352
commit aa920040a9
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
2 changed files with 3 additions and 0 deletions

2
.env.template Normal file
View File

@ -0,0 +1,2 @@
JWT_SECRET="b/&&7b78BF&fv/Vd"
MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ"

View File

@ -14,6 +14,7 @@ RUN apk --no-cache add git
COPY . .
FROM base as build-and-test
RUN cp .env.template .env
RUN yarn install --production=false --frozen-lockfile --non-interactive
RUN cd styleguide && yarn install --production=false --frozen-lockfile --non-interactive \
&& cd .. \