-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update tool version to v1.5.2 and update ent template
- Loading branch information
Showing
19 changed files
with
262 additions
and
120 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 |
---|---|---|
|
@@ -3,15 +3,15 @@ FROM golang:1.20.2-alpine3.17 as builder | |
# Define the project name | 定义项目名称 | ||
ARG PROJECT=job | ||
|
||
WORKDIR /home | ||
WORKDIR /app | ||
COPY . . | ||
|
||
RUN go env -w GO111MODULE=on \ | ||
&& go env -w GOPROXY=https://goproxy.cn,direct \ | ||
&& go env -w CGO_ENABLED=0 \ | ||
&& go env \ | ||
&& go mod tidy \ | ||
&& go build -ldflags="-s -w" -o /home/${PROJECT}_rpc ${PROJECT}.go | ||
&& go build -ldflags="-s -w" -o /app/${PROJECT}_rpc ${PROJECT}.go | ||
|
||
FROM alpine:latest | ||
|
||
|
@@ -24,12 +24,12 @@ ARG [email protected]@gmail.com | |
|
||
LABEL MAINTAINER=${AUTHOR} | ||
|
||
WORKDIR /home | ||
WORKDIR /app | ||
ENV PROJECT=${PROJECT} | ||
ENV CONFIG_FILE=${CONFIG_FILE} | ||
|
||
COPY --from=builder /home/${PROJECT}_rpc ./ | ||
COPY --from=builder /home/etc/${CONFIG_FILE} ./etc/ | ||
COPY --from=builder /app/${PROJECT}_rpc ./ | ||
COPY --from=builder /app/etc/${CONFIG_FILE} ./etc/ | ||
|
||
EXPOSE 9105 | ||
EXPOSE 9100 | ||
ENTRYPOINT ./${PROJECT}_rpc -f etc/${CONFIG_FILE} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.