Skip to content

Commit

Permalink
feat: dockerize editor
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Missy <adrian.missy@onewavestudios.com>
  • Loading branch information
oneWaveAdrian committed May 27, 2022
1 parent 351bbcb commit c0ad994
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .dockerignore
@@ -0,0 +1,24 @@
**/.classpath
**/.dockerignore
**/.env
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
README.md
docs
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,6 +3,7 @@
package-lock.json
node_modules/
nwjs/
.DS_Store

source/temp/
source/node_modules/
Expand Down
17 changes: 17 additions & 0 deletions dockerfile
@@ -0,0 +1,17 @@
FROM node:16.15.0

RUN mkdir /nunustudio
COPY . /nunustudio
WORKDIR /nunustudio

RUN npm install --legacy-peer-deps
RUN npm run napa

EXPOSE 8081

ENV HOST=0.0.0.0
ENV PORT=8081

RUN npm run build-editor

CMD ["npm", "run", "start-docker" ]
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "nunu-studio",
"description": "nunuStudio is a web based game engine for 3D and 2D game development with support for VR and AR",
"main": "index.html",
"version": "0.98.31",
"version": "0.98.33",
"author": "Tentone",
"license": "MIT",
"homepage": "https://www.nunustudio.org",
Expand All @@ -14,6 +14,7 @@
"start-page": "cd ./source/page && npm run start",
"start": "webpack-dev-server --open --hot --inline --config webpack.dev.js",
"start-https": "webpack-dev-server --open --hot --inline --host 0.0.0.0 --https --config webpack.dev.js",
"start-docker": "http-server ./docs/editor -p 8081 --cors -o",
"start-nwjs": "webpack --config webpack.dev.js && run --with-ffmpeg --mirror https://dl.nwjs.io/ ./docs/editor",
"serve": "http-server . -p 8081 --cors -o",
"docs-jsdoc": "jsdoc -d jsdocs -r ./source/core",
Expand Down

0 comments on commit c0ad994

Please sign in to comment.