Update Dockerfile
Browse files- Dockerfile +1 -30
Dockerfile
CHANGED
@@ -1,30 +1 @@
|
|
1 |
-
FROM
|
2 |
-
|
3 |
-
COPY . /app
|
4 |
-
|
5 |
-
# RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/
|
6 |
-
|
7 |
-
WORKDIR /app
|
8 |
-
RUN yarn install && yarn run build
|
9 |
-
|
10 |
-
WORKDIR /app/web
|
11 |
-
RUN yarn install && yarn run build
|
12 |
-
|
13 |
-
FROM node:20-alpine
|
14 |
-
WORKDIR /app
|
15 |
-
|
16 |
-
# Install dotenvx
|
17 |
-
RUN curl -fsS https://dotenvx.sh/ | sh
|
18 |
-
|
19 |
-
COPY .env /app
|
20 |
-
|
21 |
-
COPY --from=build /app/dist ./dist
|
22 |
-
COPY --from=build /app/backend ./backend
|
23 |
-
COPY --from=build /app/web/build ./web/build
|
24 |
-
COPY --from=build /app/package.json ./
|
25 |
-
|
26 |
-
# RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/
|
27 |
-
RUN yarn install --production && yarn cache clean
|
28 |
-
|
29 |
-
EXPOSE 3000
|
30 |
-
CMD yarn run start
|
|
|
1 |
+
FROM hlohaus789/g4f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|