build and upload jim-api image

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

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

@ -55,9 +55,11 @@ RUN apt-get update \
&& echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \ && echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
&& apt-get update \ && apt-get update \
# For Security # 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 # install a chinese font to support the use of tools like matplotlib
&& apt-get install -y fonts-noto-cjk \ && 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 \ && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

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

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

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

Loading…
Cancel
Save