Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docker/envs/core-services/web.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ SERVER_CONSOLE_API_URL=${SERVER_CONSOLE_API_URL:-http://api:5001}
# WEBAPP_ACCESS_PREFLIGHT_PROXY_SECRET=
WEB_SENTRY_DSN=${WEB_SENTRY_DSN:-}
NEXT_PUBLIC_SOCKET_URL=${NEXT_PUBLIC_SOCKET_URL:-ws://localhost}
EXPERIMENTAL_ENABLE_VINEXT=${EXPERIMENTAL_ENABLE_VINEXT:-false}
LOOP_NODE_MAX_COUNT=${LOOP_NODE_MAX_COUNT:-100}
MAX_TOOLS_NUM=${MAX_TOOLS_NUM:-10}
MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT:-10}
Expand Down
4 changes: 1 addition & 3 deletions web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ COPY . .
WORKDIR /app/web
ENV NODE_OPTIONS="--max-old-space-size=4096"
ENV pnpm_config_verify_deps_before_run=false
RUN pnpm build && pnpm build:vinext
RUN pnpm build


# production stage
Expand All @@ -60,7 +60,6 @@ ENV PORT=3000
# Next.js standalone binds to HOSTNAME. Docker defaults it to the container ID, and
# net.Server.listen() takes an ID like 30889528e495 as a numeric backlog, not a host.
ENV HOSTNAME=0.0.0.0
ENV EXPERIMENTAL_ENABLE_VINEXT=false
ENV NEXT_TELEMETRY_DISABLED=1

# set timezone
Expand All @@ -81,7 +80,6 @@ WORKDIR /app
COPY --from=builder --chown=dify:dify /app/web/public ./targets/next/web/public
COPY --from=builder --chown=dify:dify /app/web/.next/standalone ./targets/next/
COPY --from=builder --chown=dify:dify /app/web/.next/static ./targets/next/web/.next/static
COPY --from=builder --chown=dify:dify /app/web/dist/standalone ./targets/vinext

COPY --chown=dify:dify --chmod=755 web/docker/entrypoint.sh ./entrypoint.sh

Expand Down
4 changes: 0 additions & 4 deletions web/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,4 @@ export NEXT_PUBLIC_MAX_PARALLEL_LIMIT=${MAX_PARALLEL_LIMIT}
export NEXT_PUBLIC_MAX_ITERATIONS_NUM=${MAX_ITERATIONS_NUM}
export NEXT_PUBLIC_MAX_TREE_DEPTH=${MAX_TREE_DEPTH}

if [ "${EXPERIMENTAL_ENABLE_VINEXT:-}" = "true" ]; then
exec node /app/targets/vinext/server.js
fi

exec node /app/targets/next/web/server.js
Loading