forked from openimsdk/open-im-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ WORKDIR $SERVER_DIR | |
# Copy all files from the current directory into the container | ||
COPY . . | ||
|
||
ENV HTTPS_PROXY=http://192.168.18.100:1081 | ||
RUN go mod download | ||
|
||
# Install Mage to use for building the application | ||
|
@@ -21,6 +22,9 @@ RUN go install github.com/magefile/[email protected] | |
# Optionally build your application if needed | ||
RUN mage build | ||
|
||
ENV HTTPS_PROXY= | ||
|
||
|
||
# Using Alpine Linux with Go environment for the final image | ||
FROM golang:1.22-alpine | ||
|
||
|
@@ -43,7 +47,10 @@ COPY --from=builder $SERVER_DIR/start-config.yml $SERVER_DIR/ | |
COPY --from=builder $SERVER_DIR/go.mod $SERVER_DIR/ | ||
COPY --from=builder $SERVER_DIR/go.sum $SERVER_DIR/ | ||
|
||
ENV HTTPS_PROXY=http://192.168.18.100:1081 | ||
|
||
RUN go get github.com/openimsdk/[email protected] | ||
ENV HTTPS_PROXY= | ||
|
||
# Set the command to run when the container starts | ||
ENTRYPOINT ["sh", "-c", "mage start && tail -f /dev/null"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters