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"
COPY package*.json ./
COPY . /app
RUN "npm install --production"
RUN npm install --production
EXPOSE 3200
USER node
ENTRYPOINT ["bash", "-c"]
+3 -2
View File
@@ -125,15 +125,16 @@ networks:
driver: bridge
`;
const dockerfile = `
const dockerfile = `
FROM node:15
WORKDIR "/app"
COPY package*.json ./
COPY . /app
RUN npm install --production
EXPOSE ${appPort}
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["npm install --production && sleep 10 && npm start"]
CMD ["sleep 10 && npm start"]
`;
const sqlfile = `
+1 -1
View File
@@ -8,7 +8,7 @@
"dev": "npm run watch:server",
"watch:server": "nodemon . --ext js,jsx,json --ignore 'node_modules/*'",
"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"
},
"repository": {