From aa920040a972f38a28e15d934150490729f3c8f8 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Sat, 12 Jan 2019 14:48:03 +0100 Subject: [PATCH] Try to fix build by providing default env vars --- .env.template | 2 ++ Dockerfile | 1 + 2 files changed, 3 insertions(+) create mode 100644 .env.template diff --git a/.env.template b/.env.template new file mode 100644 index 000000000..4313645bb --- /dev/null +++ b/.env.template @@ -0,0 +1,2 @@ +JWT_SECRET="b/&&7b78BF&fv/Vd" +MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ" diff --git a/Dockerfile b/Dockerfile index 8f7df318b..7a8c6583c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 .. \