Dockerized

This commit is contained in:
2022-02-22 19:50:01 +00:00
parent 61f638d8da
commit 0182ba65b6
3 changed files with 14 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
.env
node_modules
+8
View File
@@ -0,0 +1,8 @@
FROM node:16
WORKDIR "/app"
COPY package*.json ./
RUN npm install
COPY . /app
EXPOSE 4000
ENTRYPOINT ["bash", "-c"]
CMD ["npm start"]
+4 -1
View File
@@ -4,7 +4,10 @@
"description": "", "description": "",
"main": "server/index.js", "main": "server/index.js",
"scripts": { "scripts": {
"start": "node server/index.js" "start": "node server/index.js",
"docker": "npm run docker:build && npm run docker:push",
"docker:build": "docker buildx build . --platform linux/amd64 --tag docker.krgamestudios.com/krgamestudios/sineql-demo:latest",
"docker:push": "docker push docker.krgamestudios.com/krgamestudios/sineql-demo:latest"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",