soiz1 commited on
Commit
a3dc984
·
verified ·
1 Parent(s): 125f6c5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -4,6 +4,11 @@ FROM node:18-alpine AS builder
4
  RUN apk add --no-cache git python3 make g++ bash findutils
5
  WORKDIR /app
6
  COPY . .
 
 
 
 
 
7
  RUN npm install @babel/runtime --save --legacy-peer-deps
8
  RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
9
  RUN npm run build
@@ -17,15 +22,9 @@ RUN mkdir -p /build_output \
17
  FROM python:3.11-slim
18
  RUN pip install --no-cache-dir flask
19
  WORKDIR /app
20
- # vue-devtools ビルド
21
- RUN cd vue-devtools \
22
- && npm install -g lerna \
23
- && npm install \
24
- && npm run build
25
 
26
  COPY --from=builder /build_output/eruda-vue.js /app/static/eruda-vue.js
27
  COPY app.py /app/app.py
28
- COPY vue-devtools /app/vue-devtools
29
 
30
  EXPOSE 7860
31
  CMD ["python", "app.py"]
 
4
  RUN apk add --no-cache git python3 make g++ bash findutils
5
  WORKDIR /app
6
  COPY . .
7
+ COPY vue-devtools /app/vue-devtools
8
+ RUN cd /app/vue-devtools \
9
+ && npm install -g lerna \
10
+ && npm install \
11
+ && npm run build
12
  RUN npm install @babel/runtime --save --legacy-peer-deps
13
  RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
14
  RUN npm run build
 
22
  FROM python:3.11-slim
23
  RUN pip install --no-cache-dir flask
24
  WORKDIR /app
 
 
 
 
 
25
 
26
  COPY --from=builder /build_output/eruda-vue.js /app/static/eruda-vue.js
27
  COPY app.py /app/app.py
 
28
 
29
  EXPOSE 7860
30
  CMD ["python", "app.py"]