ソースを参照

Build the frontend assets for the image

Johannes Zellner 9 年 前
親
コミット
80ff86d61b
1 ファイル変更、4 行追加、1 行削除
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -6,10 +6,13 @@ ENV PATH /usr/local/node-6.9.5/bin:$PATH
 RUN mkdir -p /app/code
 WORKDIR /app/code
 
+RUN npm install -g browserify
+
 COPY frontend /app/code/frontend/
 COPY backend /app/code/backend/
 COPY start.sh app.js package.json /app/code/
 
-RUN npm install --production
+RUN npm install
+RUN browserify -t vueify -t envify -e ./frontend/js/main.js -o ./frontend/js/bundle.js
 
 CMD [ "/app/code/start.sh" ]