diff --git a/Dockerfile b/Dockerfile index 2e1ebeaf1..7bc81b0bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ ENV GOPROXY=$GOPROXY # Set up the working directory WORKDIR /openim/openim-server -COPY go.mod go.sum ./ +COPY go.mod go.sum go.work go.work.sum ./ RUN go mod download # Copy all files to the container diff --git a/docker-compose.yaml b/docker-compose.yaml index 2c0c98bd7..28fb1ceae 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -97,6 +97,7 @@ services: command: minio server /data --console-address ':9090' openim-server: + build: . image: ghcr.io/openimsdk/openim-server:latest container_name: openim-server volumes: