File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ LABEL Description="This image is used to start the hc-api-feathers" Vendor="Huma
55RUN apk update && apk upgrade
66RUN rm -rf /var/cache/apk/*
77
8- # copy the project
9- RUN mkdir -p /var/www/
10- COPY . /var/www/
11- WORKDIR /var/www/
12-
138# expose the app port
149EXPOSE 3030
1510
@@ -19,14 +14,19 @@ EXPOSE 3030
1914ENV NODE_ENV=production
2015ENV API_PORT=3030
2116
22- # install PM2 process manager and configure it for autostart
23- RUN npm install pm2 -g
24- # RUN pm2 startup
25-
26- # buld application
27- RUN npm install --production
28-
2917# start the application in a autohealing cluster
3018# CMD NODE_ENV=production pm2 start server/index.js -n api -i 0 --attach
3119# as we have issues with pm2 currently in conjunction with nuxt, we use the standard approach here
3220CMD NODE_ENV=production node server/index.js
21+
22+ # create working directory
23+ RUN mkdir -p /var/www/
24+ WORKDIR /var/www/
25+
26+ # install app dependencies
27+ COPY package.json /var/www/
28+ COPY yarn.lock /var/www/
29+ RUN yarn install --frozen-lockfile --non-interactive
30+
31+ # copy the code to the docker image
32+ COPY . /var/www/
Original file line number Diff line number Diff line change @@ -569,9 +569,9 @@ braces@^2.3.0:
569569 split-string "^3.0.2"
570570 to-regex "^3.0.1"
571571
572- 573- version "1.3.0 "
574- resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0 .tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f "
572+ 573+ version "1.3.1 "
574+ resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1 .tgz#baa559ee14ced73452229bad7326467c61fabd60 "
575575
576576bson@~1.0.4 :
577577 version "1.0.4"
12161216 readable-stream "1.1.x"
12171217 streamsearch "0.1.2"
12181218
1219- diff@3.3.1 :
1220- version "3.3.1 "
1221- resolved "https://registry.yarnpkg.com/diff/-/diff-3.3.1 .tgz#aa8567a6eed03c531fc89d3f711cd0e5259dec75 "
1219+ diff@3.5.0 :
1220+ version "3.5.0 "
1221+ resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0 .tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12 "
12221222
1223122312241224 version "0.1.0"
34023402 dependencies :
34033403 minimist "0.0.8"
34043404
3405- mocha@^ 5.0.0 :
3406- version "5.0.1 "
3407- resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.0.1 .tgz#759b62c836b0732382a62b6b1fb245ec1bc943ac "
3405+ mocha@~ 5.0.4 :
3406+ version "5.0.4 "
3407+ resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.0.4 .tgz#6b7aa328472da1088e69d47e75925fd3a3bb63c6 "
34083408 dependencies :
3409- browser-stdout "1.3.0 "
3409+ browser-stdout "1.3.1 "
34103410 commander "2.11.0"
34113411 debug "3.1.0"
3412- diff "3.3.1 "
3412+ diff "3.5.0 "
34133413 escape-string-regexp "1.0.5"
34143414 glob "7.1.2"
34153415 growl "1.10.3"
You can’t perform that action at this time.
0 commit comments