Upload Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -20,7 +20,7 @@ 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
|
@@ -31,8 +31,8 @@ RUN curl -fsS https://dotenvx.sh/ | sh
|
|
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 --from=build /app/package.json ./
|
37 |
|
38 |
# RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/
|
|
|
20 |
RUN yarn install && yarn run build
|
21 |
|
22 |
# 添加调试命令
|
23 |
+
#RUN ls -R /app
|
24 |
|
25 |
FROM node:20-alpine
|
26 |
WORKDIR /app
|
|
|
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 --from=build /app/package.json ./
|
37 |
|
38 |
# RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/
|