updated frontend dockerfile

This commit is contained in:
Marvin Zhang
2019-06-10 21:42:46 +08:00
parent e2c3923d6b
commit a2e49e1be5
2 changed files with 21 additions and 0 deletions

View File

@@ -4,6 +4,10 @@ FROM nginx:latest
# source files
ADD . /opt/crawlab/frontend
#用ubuntu国内源替换默认源
RUN rm /etc/apt/sources.list
COPY sources.list /etc/apt/sources.list
# environment variables
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 8.12.0