|
|
@ -4,7 +4,7 @@ COPY . /src |
|
|
|
WORKDIR /src |
|
|
|
WORKDIR /src |
|
|
|
|
|
|
|
|
|
|
|
RUN go mod tidy |
|
|
|
RUN go mod tidy |
|
|
|
RUN go build hot.go |
|
|
|
RUN go build main.go |
|
|
|
|
|
|
|
|
|
|
|
FROM 192.168.1.131:8888/library/alpine:3.13 |
|
|
|
FROM 192.168.1.131:8888/library/alpine:3.13 |
|
|
|
RUN apk add make |
|
|
|
RUN apk add make |
|
|
@ -16,6 +16,6 @@ RUN echo "Asia/Shanghai" > /etc/timezone |
|
|
|
WORKDIR /app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
|
|
|
|
COPY --from=builder /src/configs /app/configs |
|
|
|
COPY --from=builder /src/configs /app/configs |
|
|
|
COPY --from=builder /src/hot /app/hot |
|
|
|
COPY --from=builder /src/main /app/main |
|
|
|
ENTRYPOINT ["./hot"] |
|
|
|
ENTRYPOINT ["./main"] |
|
|
|
|
|
|
|
|
|
|
|