diff --git a/.dockerignore b/.dockerignore index 1f7655b..cb876d7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,6 +5,7 @@ !*.js !*.sh !*.md +!.env !config config/local.json !client diff --git a/Dockerfile b/Dockerfile index ad742b5..6abf135 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,12 +35,13 @@ COPY /package.json /website/ RUN npm install COPY /.babelrc /*.html /*.js /website/ COPY /src /website/src +COPY /.env /website/ RUN npm run build # Polymer frontend app built using bower WORKDIR /website/frontend COPY /frontend /website/frontend -RUN npx bower install +RUN npx -y bower -y install # 'identities' frontend built using react WORKDIR /website/client @@ -50,6 +51,7 @@ COPY /client/tsconfig.json /website/client/ COPY /client/*.js /website/client/ COPY /client/public /website/client/public COPY /client/src /website/client/src +COPY /client/.env /website/client/ RUN npm run build # @@ -87,6 +89,7 @@ WORKDIR /website/server COPY /server/package.json /website/server/ RUN npm install +COPY /.env /website/ COPY /config /website/config COPY /server/*.js /website/server/ COPY /server/db /website/server/db