build and upload jim-api image

pull/21891/head
ytqh 1 year ago
parent 531bd4657e
commit 54e3250156

@ -1,7 +1,7 @@
# Variables
DOCKER_REGISTRY=akiyu303
WEB_IMAGE=$(DOCKER_REGISTRY)/lefeng-web
API_IMAGE=$(DOCKER_REGISTRY)/lefeng-api
WEB_IMAGE=$(DOCKER_REGISTRY)/jim-web
API_IMAGE=$(DOCKER_REGISTRY)/jim-api
VERSION=latest
PLATFORM=linux/amd64

@ -55,9 +55,11 @@ RUN apt-get update \
&& echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
&& apt-get update \
# For Security
&& apt-get install -y --no-install-recommends expat=2.6.4-1 libldap-2.5-0=2.5.19+dfsg-1 perl=5.40.0-8 libsqlite3-0=3.46.1-1 zlib1g=1:1.3.dfsg+really1.3.1-1+b1 \
&& apt-get install -y --no-install-recommends expat=2.6.4-1 libldap-2.5-0 perl=5.40.0-8 libsqlite3-0=3.46.1-1 zlib1g=1:1.3.dfsg+really1.3.1-1+b1 \
# install a chinese font to support the use of tools like matplotlib
&& apt-get install -y fonts-noto-cjk \
# Add libmagic1 installation
&& apt-get install -y libmagic1 libmagic-mgc=1:5.44-3 \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

@ -2,7 +2,7 @@ x-shared-env: &shared-api-worker-env
services:
# API service
api:
image: langgenius/dify-api:0.15.2
image: akiyu303/jim-api:latest
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
@ -27,7 +27,7 @@ services:
# worker service
# The Celery worker for processing the queue.
worker:
image: langgenius/dify-api:0.15.2
image: akiyu303/jim-api:latest
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"

@ -396,7 +396,7 @@ x-shared-env: &shared-api-worker-env
services:
# API service
api:
image: langgenius/dify-api:0.15.2
image: akiyu303/jim-api:latest
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
@ -421,7 +421,7 @@ services:
# worker service
# The Celery worker for processing the queue.
worker:
image: langgenius/dify-api:0.15.2
image: akiyu303/jim-api:latest
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"

@ -24,6 +24,11 @@ server {
include proxy.conf;
}
location /apidocs {
proxy_pass http://api:5001;
include proxy.conf;
}
location / {
proxy_pass http://web:3000;
include proxy.conf;

Loading…
Cancel
Save