local deploy by build docker image

pull/18407/head
lska367 1 year ago committed by GitHub
parent 6a1eb1f501
commit 8b94e1182e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,14 +6,14 @@ WORKDIR /app/api
# Install uv
ENV UV_VERSION=0.6.14
# if you are located in China,you can add the sentence to acceding uv pip tool
# ENV UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple/"
ENV UV_DEFAULT_INDEX="https://mirrors.aliyun.com/pypi/simple/"
RUN python -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip
RUN pip install --no-cache-dir uv==${UV_VERSION} -i https://mirrors.aliyun.com/pypi/simple/
# if you meet some error about apt,you can try to use sources.list config apt images
# RUN rm -rf /etc/apt/source*
# ADD sources.list /etc/apt/
RUN rm -rf /etc/apt/source*
ADD sources.list /etc/apt/
FROM base AS packages

@ -474,7 +474,8 @@ x-shared-env: &shared-api-worker-env
services:
# API service
api:
image: langgenius/dify-api:1.2.0
# image: langgenius/dify-api:1.2.0
build: ../api
restart: always
environment:
# Use the shared environment variables.
@ -503,7 +504,8 @@ services:
# worker service
# The Celery worker for processing the queue.
worker:
image: langgenius/dify-api:1.2.0
# image: langgenius/dify-api:1.2.0
build: ../api
restart: always
environment:
# Use the shared environment variables.
@ -529,7 +531,8 @@ services:
# Frontend web application.
web:
image: langgenius/dify-web:1.2.0
# image: langgenius/dify-web:1.2.0
build: ../web
restart: always
environment:
CONSOLE_API_URL: ${CONSOLE_API_URL:-}

@ -11,7 +11,7 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
# if you located in China, you can use taobao mirror to speed up
# RUN pnpm config set registry https://registry.npmmirror.com/
RUN pnpm config set registry https://registry.npmmirror.com/
# install packages
FROM base AS packages

Loading…
Cancel
Save