Funky config stuff gives me a headache

This commit is contained in:
2021-04-03 03:26:48 +11:00
parent e34bcb2aa8
commit 93c8c0f871
3 changed files with 5 additions and 4 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 3200 EXPOSE 3200
USER node USER node
ENTRYPOINT ["bash", "-c"] ENTRYPOINT ["bash", "-c"]
+2 -1
View File
@@ -130,10 +130,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/02-auth:latest", "docker:build": "docker buildx build . --platform linux/amd64 --tag docker.krgamestudios.com/krgamestudios/02-auth:latest",
"docker:push": "docker push docker.krgamestudios.com/krgamestudios/02-auth:latest" "docker:push": "docker push docker.krgamestudios.com/krgamestudios/02-auth:latest"
}, },
"repository": { "repository": {