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
2885d275
Commit
2885d275
authored
Jul 07, 2023
by
jaden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix build image file
parent
36ee82fd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
.github/workflows/main.yml
.github/workflows/main.yml
+4
-0
dockerfile
dockerfile
+3
-2
No files found.
.github/workflows/main.yml
View file @
2885d275
...
@@ -9,6 +9,10 @@ jobs:
...
@@ -9,6 +9,10 @@ jobs:
steps
:
steps
:
-
name
:
Checkout code
-
name
:
Checkout code
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
-
name
:
Install dependencies & build next app
run
:
|
npm install
npm run build
-
name
:
Login to Docker Hub
-
name
:
Login to Docker Hub
uses
:
docker/login-action@v1
uses
:
docker/login-action@v1
with
:
with
:
...
...
dockerfile
View file @
2885d275
...
@@ -5,7 +5,8 @@ FROM node:18
...
@@ -5,7 +5,8 @@ FROM node:18
WORKDIR
/app
WORKDIR
/app
# 复制整个应用到容器中
# 复制整个应用到容器中
COPY
./ /app
COPY
package*.json ./
COPY
pnpm-lock.yaml ./
# 安装依赖
# 安装依赖
RUN
npm i
-g
pnpm
RUN
npm i
-g
pnpm
...
@@ -21,7 +22,7 @@ ARG OPENAI_PROXY_URL
...
@@ -21,7 +22,7 @@ ARG OPENAI_PROXY_URL
ENV
OPENAI_PROXY_URL $OPENAI_PROXY_URL
ENV
OPENAI_PROXY_URL $OPENAI_PROXY_URL
# 执行构建命令
# 执行构建命令
RUN
yarn build
COPY
.next ./.next
# 暴露 3000 端口
# 暴露 3000 端口
EXPOSE
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