Created
April 20, 2019 01:25
-
-
Save GreyCat/565620443eb67f7eb0fe32ade16d83d9 to your computer and use it in GitHub Desktop.
Dockerfile for web IDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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