Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line numberDiff line numberDiff line change
@@ -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