Skip to content

Instantly share code, notes, and snippets.

@GreyCat
Created April 20, 2019 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GreyCat/565620443eb67f7eb0fe32ade16d83d9 to your computer and use it in GitHub Desktop.
Save GreyCat/565620443eb67f7eb0fe32ade16d83d9 to your computer and use it in GitHub Desktop.
Dockerfile for web IDE
# To build: `docker build --tag webide .`
# To run: `docker run --rm -p 4444:4444 webide:latest`
FROM node:lts-stretch
COPY . /webide
WORKDIR /webide
RUN apt-get update && apt-get install -y python-ruamel.yaml
RUN npm install
RUN npm run install
RUN npm install http-server
RUN ./build
ENTRYPOINT ["/webide/node_modules/.bin/http-server", "/webide/out", "-p", "4444"]
EXPOSE 4444/tcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment