mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 11:07:43 +00:00
feat: add production scripts and better Dockerfile
Closes: #710 Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+3
-1
@@ -32,6 +32,8 @@ WORKDIR /app
|
||||
|
||||
COPY --from=builder /build/node_modules/ node_modules/
|
||||
COPY --from=builder /build/build/ build/
|
||||
COPY package.json package.json
|
||||
COPY version.txt version.txt
|
||||
|
||||
CMD [ "node", "./build/index.js" ]
|
||||
ENTRYPOINT ["npm", "run"]
|
||||
CMD ["start:production"]
|
||||
|
||||
+3
-1
@@ -9,7 +9,9 @@
|
||||
"lint:fix": "xo --fix",
|
||||
"start": "npm run build && node build/index.js",
|
||||
"start:dev": "nodemon --config nodemon.json",
|
||||
"test:notification": "npm run build && node build/__test__/notification-test.js"
|
||||
"start:production": "node build/index.js",
|
||||
"test:notification": "npm run build && node build/__test__/notification-test.js",
|
||||
"test:notification:production": "node build/__test__/notification-test.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user