mirror of
https://github.com/Ratstail91/sineql-demo.git
synced 2026-05-05 23:30:11 +10:00
Dockerized
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
.env
|
||||||
|
node_modules
|
||||||
@@ -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
@@ -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": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user