Funky config stuff gives me a headache

This commit is contained in:
2021-04-03 03:26:36 +11:00
parent 7ebced9304
commit 4ff507b0fa
3 changed files with 4 additions and 3 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 3100
USER node
ENTRYPOINT ["bash", "-c"]
+2 -1
View File
@@ -113,10 +113,11 @@ 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/01-news:latest",
"docker:build": "docker buildx build . --platform linux/amd64 --tag docker.krgamestudios.com/krgamestudios/01-news:latest",
"docker:push": "docker push docker.krgamestudios.com/krgamestudios/01-news:latest"
},
"repository": {