File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11# Stage 1 - compile
2- FROM node:11 -alpine AS compile
2+ FROM node:12 -alpine AS compile
33WORKDIR /opt/web/app
44COPY . .
55RUN npm i && npm rebuild node-sass && npm run build
66
77# Stage 2 - production install
8- FROM node:11 -alpine AS prod-install
8+ FROM node:12 -alpine AS prod-install
99WORKDIR /opt/web/app
1010COPY --from=compile /opt/web/app/package.json /opt/web/app/package-lock.json ./
1111RUN npm i --only=production
1212
1313# Stage 3 - package files
14- FROM node:11 -alpine AS package
14+ FROM node:12 -alpine AS package
1515WORKDIR /opt/web/app
1616COPY --from=compile /opt/web/app/bin ./bin
1717COPY --from=compile /opt/web/app/config/default.js ./config/
1818COPY --from=compile /opt/web/app/config/custom-environment-variables.json ./config/
1919COPY --from=compile /opt/web/app/src ./src
2020COPY --from=compile /opt/web/app/public ./public
21- COPY --from=compile /opt/web/app/lock.html ./
2221COPY --from=compile /opt/web/app/package.json ./
2322COPY --from=compile /opt/web/app/package-lock.json ./
2423COPY --from=prod-install /opt/web/app/node_modules ./node_modules
2524
26- FROM node:11 -alpine AS deploy
25+ FROM node:12 -alpine AS deploy
2726WORKDIR /opt/web/app
2827COPY --from=package /opt/web/app/ ./
2928EXPOSE 8080
Original file line number Diff line number Diff line change 2121// SOFTWARE.
2222
2323const fs = require ( 'fs' ) ;
24- const uuid = require ( 'uuid/v4' ) ;
24+ const uuid = require ( 'uuid' ) . v4 ;
2525const config = require ( 'config' ) ;
2626const restify = require ( 'restify' ) ;
2727
Original file line number Diff line number Diff line change 2020// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121// SOFTWARE.
2222
23- const uuid = require ( 'uuid/v4' ) ;
23+ const uuid = require ( 'uuid' ) . v4 ;
2424
2525const requestId = ( req , res , next ) => {
2626 req . id = uuid ( ) ;
You can’t perform that action at this time.
0 commit comments