mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 23:04:15 +02:00
feat(build): add env variable for node production
This commit is contained in:
parent
d5a3562f4f
commit
20ae7ce153
@ -2,6 +2,8 @@ FROM node:18
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY --chown=node:node package.json .
|
||||
COPY --chown=node:node package-lock.json .
|
||||
COPY --chown=node:node tsconfig.json .
|
||||
@ -15,8 +17,6 @@ RUN npx prisma generate
|
||||
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
RUN chown node:node /opt/app/
|
||||
|
||||
USER node
|
||||
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "arabot",
|
||||
"version": "0.2.3",
|
||||
"version": "0.2.4",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "arabot",
|
||||
"version": "0.2.3",
|
||||
"version": "0.2.4",
|
||||
"license": "GPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@prisma/client": "^4.10.1",
|
||||
@ -17,6 +17,7 @@
|
||||
"@sapphire/plugin-subcommands": "^4.0.0",
|
||||
"@sapphire/stopwatch": "^1.5.0",
|
||||
"@sapphire/time-utilities": "^1.7.8",
|
||||
"@sapphire/ts-config": "^3.3.4",
|
||||
"@sapphire/utilities": "^3.9.2",
|
||||
"@types/node": "^18.0.3",
|
||||
"bullmq": "^3.6.6",
|
||||
@ -26,7 +27,6 @@
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sapphire/ts-config": "^3.3.4",
|
||||
"@types/ioredis": "^4.28.10",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
||||
"@typescript-eslint/parser": "^5.30.7",
|
||||
@ -574,7 +574,6 @@
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@sapphire/ts-config/-/ts-config-3.3.4.tgz",
|
||||
"integrity": "sha512-mWEUxCXh3cHKI7C8HJ049exVTMNaq+A/lJEDfM5ENSQ/OOZHd5DdmXn2jrYqFWbTRCHa0Vp2FAmACWBwePsBtg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "^4.6.3"
|
||||
@ -4223,7 +4222,6 @@
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@sapphire/ts-config/-/ts-config-3.3.4.tgz",
|
||||
"integrity": "sha512-mWEUxCXh3cHKI7C8HJ049exVTMNaq+A/lJEDfM5ENSQ/OOZHd5DdmXn2jrYqFWbTRCHa0Vp2FAmACWBwePsBtg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "^4.6.3"
|
||||
|
@ -37,6 +37,7 @@
|
||||
"@sapphire/plugin-subcommands": "^4.0.0",
|
||||
"@sapphire/stopwatch": "^1.5.0",
|
||||
"@sapphire/time-utilities": "^1.7.8",
|
||||
"@sapphire/ts-config": "^3.3.4",
|
||||
"@sapphire/utilities": "^3.9.2",
|
||||
"@types/node": "^18.0.3",
|
||||
"bullmq": "^3.6.6",
|
||||
@ -46,7 +47,6 @@
|
||||
"typescript": "^4.7.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sapphire/ts-config": "^3.3.4",
|
||||
"@types/ioredis": "^4.28.10",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.7",
|
||||
"@typescript-eslint/parser": "^5.30.7",
|
||||
|
Loading…
x
Reference in New Issue
Block a user