Funky config stuff gives me a headache

This commit is contained in:
2021-04-03 03:26:59 +11:00
parent 928c76fc84
commit b503df3399
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ FROM node:15
WORKDIR "/app" WORKDIR "/app"
COPY package*.json ./ COPY package*.json ./
COPY . /app COPY . /app
RUN "npm install --production" RUN npm install --production
EXPOSE 3300 EXPOSE 3300
USER node USER node
ENTRYPOINT ["bash", "-c"] ENTRYPOINT ["bash", "-c"]
+2 -1
View File
@@ -112,10 +112,11 @@ FROM node:15
WORKDIR "/app" WORKDIR "/app"
COPY package*.json ./ COPY package*.json ./
COPY . /app COPY . /app
RUN npm install --production
EXPOSE ${appPort} EXPOSE ${appPort}
USER node USER node
ENTRYPOINT ["bash", "-c"] ENTRYPOINT ["bash", "-c"]
CMD ["npm install --production && sleep 10 && npm start"] CMD ["sleep 10 && npm start"]
`; `;
const sqlfile = ` const sqlfile = `
+1 -1
View File
@@ -8,7 +8,7 @@
"dev": "npm run watch:server", "dev": "npm run watch:server",
"watch:server": "nodemon . --ext js,jsx,json --ignore 'node_modules/*'", "watch:server": "nodemon . --ext js,jsx,json --ignore 'node_modules/*'",
"docker": "npm run docker:build && npm run docker:push", "docker": "npm run docker:build && npm run docker:push",
"docker:build": "docker buildx build . --platform amd64 --tag docker.krgamestudios.com/krgamestudios/03-chat:latest", "docker:build": "docker buildx build . --platform linux/amd64 --tag docker.krgamestudios.com/krgamestudios/03-chat:latest",
"docker:push": "docker push docker.krgamestudios.com/krgamestudios/03-chat:latest" "docker:push": "docker push docker.krgamestudios.com/krgamestudios/03-chat:latest"
}, },
"repository": { "repository": {