Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
sutpc
/
heatmap
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 62106aab
authored
Nov 03, 2026
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update Dockerfile
1 parent
5448cff3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
Dockerfile
Dockerfile
View file @
62106aa
...
@@ -2,15 +2,15 @@
...
@@ -2,15 +2,15 @@
# 账号数据挂命名 volume,重建容器不丢。
# 账号数据挂命名 volume,重建容器不丢。
# ---- 构建前端 ----
# ---- 构建前端 ----
FROM
node:22-alpine
AS builder
FROM
harbortest.glsx.com.cn/node/node:22.21.1-alpine3.21
AS builder
WORKDIR
/app
WORKDIR
/app
RUN
corepack
enable
RUN
corepack
enable
COPY . .
COPY . .
RUN
pnpm install
--frozen-lockfile
\
RUN
pnpm install
\
&&
pnpm build
&&
pnpm build
# ---- 运行 ----
# ---- 运行 ----
FROM
node:22-alpine
AS runner
FROM
harbortest.glsx.com.cn/node/node:22.21.1-alpine3.21
AS runner
WORKDIR
/app
WORKDIR
/app
ENV
NODE_ENV=production
ENV
NODE_ENV=production
ENV
SERVER_PORT=8787
ENV
SERVER_PORT=8787
...
@@ -22,7 +22,7 @@ COPY src ./src
...
@@ -22,7 +22,7 @@ COPY src ./src
COPY public ./public
COPY public ./public
COPY index.html vite.config.ts tsconfig.json tsconfig.node.json ./
COPY index.html vite.config.ts tsconfig.json tsconfig.node.json ./
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/dist ./dist
RUN
pnpm install
--frozen-lockfile
RUN
pnpm install
# 账号目录挂为 volume(见 docker-compose.yml),避免写入镜像层
# 账号目录挂为 volume(见 docker-compose.yml),避免写入镜像层
VOLUME
["/app/packages/server/data"]
VOLUME
["/app/packages/server/data"]
EXPOSE
8787
EXPOSE
8787
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment