Skip to content

Add Dockerfile#5

Open
Code-Otto wants to merge 1 commit into
EmulatorJS:rustfrom
Code-Otto:rust
Open

Add Dockerfile#5
Code-Otto wants to merge 1 commit into
EmulatorJS:rustfrom
Code-Otto:rust

Conversation

@Code-Otto

Copy link
Copy Markdown

Made a simple Dockerfile for containerizing this ^-^
It uses a multi-stage build to keep resulting container filesize small and drops privileges not to run the server as root.

Build with: docker build --pull -t emulatorjs-netplay:latest
Then run with: docker run -d -p 4000:4000 emulatorjs-netplay

Drops server to non-root privileges. Small container filesize
Build with: docker build --pull -t emulatorjs-netplay:latest .
Run with: docker run -d -p 4000:4000 emulatorjs-netplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant