gitdeem commited on
Commit
3e4c363
verified
1 Parent(s): d8fc976

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -27
Dockerfile CHANGED
@@ -9,34 +9,8 @@ COPY ./logo.png /app/web/src/assets/logo.png
9
  COPY ./logo.png /app/web/src/public/favicon.ico
10
  COPY ./home.vue /app/web/src/pages/home.vue
11
 
12
- #COPY . /app
13
-
14
- # RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/
15
-
16
- WORKDIR /app
17
  RUN yarn install && yarn run build
18
-
19
- WORKDIR /app/web
20
- RUN yarn install && yarn run build
21
-
22
- # 娣诲姞璋冭瘯鍛戒护
23
- #RUN ls -R /app
24
-
25
- FROM node:20-alpine
26
- WORKDIR /app
27
-
28
- # Install dotenvx
29
- #RUN curl -fsS https://dotenvx.sh/ | sh
30
-
31
- #COPY .env /app
32
-
33
- COPY --from=build /app/dist ./dist
34
- #COPY --from=build /app/backend ./backend
35
- #COPY --from=build /app/web/build ./web/build
36
- COPY ./package.json /app/package.json
37
-
38
- # RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/
39
- RUN yarn install --production && yarn cache clean
40
 
41
  EXPOSE 3000
42
  CMD yarn run start
 
9
  COPY ./logo.png /app/web/src/public/favicon.ico
10
  COPY ./home.vue /app/web/src/pages/home.vue
11
 
 
 
 
 
 
12
  RUN yarn install && yarn run build
13
+ RUN cd web && yarn install && yarn run build
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
  EXPOSE 3000
16
  CMD yarn run start