Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-ai-assistant
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 4a5c890f
authored
Apr 25, 2025
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update Dockerfile
1 parent
a795daf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
Dockerfile
Dockerfile
View file @
4a5c890
...
@@ -22,7 +22,7 @@ COPY pnpm-lock.yaml .
...
@@ -22,7 +22,7 @@ COPY pnpm-lock.yaml .
# if you located in China, you can use taobao registry to speed up
# if you located in China, you can use taobao registry to speed up
# RUN pnpm install --frozen-lockfile --registry https://registry.npmmirror.com/
# RUN pnpm install --frozen-lockfile --registry https://registry.npmmirror.com/
RUN
pnpm install --frozen-lockfile
RUN
pnpm install --frozen-lockfile
--registry https://registry.npmmirror.com/
# build resources
# build resources
FROM
base AS builder
FROM
base AS builder
...
@@ -40,10 +40,19 @@ FROM base AS production
...
@@ -40,10 +40,19 @@ FROM base AS production
ENV
NODE_ENV=production
ENV
NODE_ENV=production
ENV
EDITION=SELF_HOSTED
ENV
EDITION=SELF_HOSTED
ENV
DEPLOY_ENV=PRODUCTION
ENV
DEPLOY_ENV=PRODUCTION
ENV
CONSOLE_API_URL=http://127.0.0.1:5001
#ENV CONSOLE_API_URL=http://127.0.0.1:5001
ENV
APP_API_URL=http://127.0.0.1:5001
#ENV APP_API_URL=http://127.0.0.1:5001
ENV
MARKETPLACE_API_URL=https://marketplace.dify.ai
#ENV MARKETPLACE_API_URL=http://127.0.0.1:5001
ENV
MARKETPLACE_URL=https://marketplace.dify.ai
#ENV MARKETPLACE_URL=http://127.0.0.1:5001
ENV
CONSOLE_API_URL=http://192.168.3.241
ENV
APP_API_URL=http://192.168.3.241
ENV
MARKETPLACE_API_URL=http://192.168.3.241
ENV
MARKETPLACE_URL=http://192.168.3.241
ENV
PORT=3000
ENV
PORT=3000
ENV
NEXT_TELEMETRY_DISABLED=1
ENV
NEXT_TELEMETRY_DISABLED=1
ENV
PM2_INSTANCES=2
ENV
PM2_INSTANCES=2
...
@@ -63,7 +72,7 @@ COPY docker/entrypoint.sh ./entrypoint.sh
...
@@ -63,7 +72,7 @@ COPY docker/entrypoint.sh ./entrypoint.sh
# global runtime packages
# global runtime packages
RUN
pnpm add -g pm2
\
RUN
pnpm add -g pm2
--registry https://registry.npmmirror.com/
\
&&
mkdir /.pm2
\
&&
mkdir /.pm2
\
&&
chown -R 1001:0 /.pm2 /app/web
\
&&
chown -R 1001:0 /.pm2 /app/web
\
&&
chmod -R
g
=
u /.pm2 /app/web
&&
chmod -R
g
=
u /.pm2 /app/web
...
...
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