mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 21:02:11 +08:00
refactor
This commit is contained in:
parent
fc9b16f7fb
commit
1f445a9be0
@ -7,12 +7,15 @@ WORKDIR /openim-server
|
|||||||
# Set the Go proxy to improve dependency resolution speed
|
# Set the Go proxy to improve dependency resolution speed
|
||||||
ENV GOPROXY=https://goproxy.cn,direct
|
ENV GOPROXY=https://goproxy.cn,direct
|
||||||
|
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
# Copy all files from the current directory into the container
|
# Copy all files from the current directory into the container
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
||||||
RUN go install github.com/magefile/mage@latest
|
RUN go install github.com/magefile/mage@latest
|
||||||
|
|
||||||
RUN mage -v && mage build
|
RUN mage build
|
||||||
|
|
||||||
# Use Alpine Linux as the final base image due to its small size and included utilities
|
# Use Alpine Linux as the final base image due to its small size and included utilities
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user