File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 99
1010# Docker extra
1111docker
12- frontend
1312.editorconfig
1413.eslintrc.cjs
1514.git
1615.gitignore
17- README.md
16+ .github
17+ * .md
Original file line number Diff line number Diff line change 11services :
22 dockge :
33 image : louislam/dockge:1
4+ build :
5+ context : .
6+ dockerfile : docker/Dockerfile
47 restart : unless-stopped
58 ports :
69 # Host Port : Container Port
Original file line number Diff line number Diff line change 44FROM louislam/dockge:build-healthcheck AS build_healthcheck
55
66# ###########################################
7- # Build
7+ # Build frontend
88# ###########################################
9- FROM louislam/dockge:base AS build
9+ FROM louislam/dockge:base AS build_frontend
10+ WORKDIR /app
11+ COPY --chown=node:node . .
12+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
13+ pnpm install && \
14+ pnpm run build:frontend
15+
16+ # ###########################################
17+ # Install node modules
18+ # ###########################################
19+ FROM louislam/dockge:base AS build_nodemodules
1020WORKDIR /app
1121COPY --chown=node:node ./package.json ./package.json
1222COPY --chown=node:node ./package-lock.json ./package-lock.json
@@ -18,8 +28,9 @@ RUN npm ci --omit=dev
1828FROM louislam/dockge:base AS release
1929WORKDIR /app
2030COPY --chown=node:node --from=build_healthcheck /app/extra/healthcheck /app/extra/healthcheck
21- COPY --from=build /app/node_modules /app/node_modules
22- COPY --chown=node:node . .
31+ COPY --from=build_frontend /app/frontend-dist /app/frontend-dist
32+ COPY --from=build_nodemodules /app/node_modules /app/node_modules
33+ COPY --chown=node:node . .
2334RUN mkdir ./data
2435
2536
You can’t perform that action at this time.
0 commit comments