diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2bd5aad --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:10 +ARG LANG=en +ENV LANG=${LANG} +ENV HOST=0.0.0.0 +USER root +COPY . /js/server +RUN cd js && \ + npm_config_user=root npm install -g bunyan gulp@4 && \ + git clone https://github.com/javascript-tutorial/engine server/modules/engine --depth=1 && \ + git clone https://github.com/javascript-tutorial/$LANG.javascript.info --depth=1 && \ + cd server && npm install +WORKDIR /js/server +EXPOSE 3000 +CMD ./edit $LANG $LANG