Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chat-query
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
jaden
chat-query
Commits
2f9fabed
Commit
2f9fabed
authored
Jul 18, 2023
by
jaden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update dockerfile
parent
907203ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
dockerfile
dockerfile
+6
-5
No files found.
dockerfile
View file @
2f9fabed
...
...
@@ -5,8 +5,7 @@ FROM node:18
WORKDIR
/app
# 复制整个应用到容器中
COPY
package*.json ./
COPY
pnpm-lock.yaml ./
COPY
./ /app
# 安装依赖
RUN
npm i
-g
pnpm
...
...
@@ -21,9 +20,11 @@ ENV NEXT_PUBLIC_OPEN_AI_API_KEY $NEXT_PUBLIC_OPEN_AI_API_KEY
ARG
OPENAI_PROXY_URL
ENV
OPENAI_PROXY_URL $OPENAI_PROXY_URL
# 执行构建命令
COPY
.next ./.next
COPY
public ./public
# 执行构建命令·
RUN
pnpm build
RUN
find /app
-mindepth
1
-maxdepth
1
!
-name
'.next'
-name
'.next'
!
-name
'node_modules'
-exec
rm
-rf
{}
+
COPY
package*.json ./
COPY
pnpm-lock.yaml ./
# 暴露 3000 端口
EXPOSE
3000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment