diff --git a/Dockerfile b/Dockerfile index 8a95b68..367269f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM golang:1.22-alpine AS builder # Define the base directory for the application as an environment variable ENV SERVER_DIR=/openim-server +ENV GOWORK=off # Set the working directory inside the container based on the environment variable WORKDIR $SERVER_DIR diff --git a/go.mod b/go.mod index 12cbd85..fa0d22f 100644 --- a/go.mod +++ b/go.mod @@ -24,8 +24,6 @@ require ( gopkg.in/yaml.v3 v3.0.1 ) -replace git.imall.cloud/openim/protocol => ../protocol - require github.com/google/uuid v1.6.0 require ( diff --git a/go.work b/go.work new file mode 100644 index 0000000..a3b5124 --- /dev/null +++ b/go.work @@ -0,0 +1,6 @@ +go 1.22.7 + +use ( + . + ../protocol +)