修改
This commit is contained in:
parent
f370b620a6
commit
220907cfa8
@ -1,45 +1,45 @@
|
||||
#FROM testhub.szjixun.cn:9043/public/golang:1.20-alpine AS builder
|
||||
#
|
||||
#LABEL stage=gobuilder
|
||||
#ENV CGO_ENABLED 0
|
||||
#ENV GOPROXY https://goproxy.cn,direct
|
||||
#WORKDIR /build
|
||||
#COPY /app/micro-bundle /app/micro-bundle
|
||||
#
|
||||
##FROM 172.16.100.99:9006/alpine
|
||||
##RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
##RUN apk update --no-cache
|
||||
##RUN apk add --no-cache ca-certificates
|
||||
##RUN apk add --no-cache tzdata
|
||||
#FROM testhub.szjixun.cn:9043/public/self-alpine
|
||||
#COPY ./conf /app/conf
|
||||
#
|
||||
#ENV TZ Asia/Shanghai
|
||||
#ENV MODE_ENV k8stest
|
||||
#WORKDIR /app
|
||||
#COPY --from=builder /app/micro-bundle .
|
||||
#EXPOSE 20118
|
||||
#CMD ["/app/micro-bundle"]
|
||||
|
||||
|
||||
FROM testhub.szjixun.cn:9043/public/golang:1.20-alpine AS builder
|
||||
|
||||
LABEL stage=gobuilder
|
||||
ENV CGO_ENABLED 0
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN go build -o micro-bundle ./
|
||||
COPY ./app/micro-bundle /app/micro-bundle
|
||||
|
||||
#FROM 172.16.100.99:9006/alpine
|
||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||
#RUN apk update --no-cache
|
||||
#RUN apk add --no-cache ca-certificates
|
||||
#RUN apk add --no-cache tzdata
|
||||
FROM testhub.szjixun.cn:9043/public/self-alpine
|
||||
|
||||
COPY --from=builder /build/micro-bundle /app/
|
||||
COPY ./conf /app/conf
|
||||
|
||||
ENV TZ Asia/Shanghai
|
||||
ENV MODE_ENV k8stest
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/micro-bundle .
|
||||
EXPOSE 20118
|
||||
CMD ["./micro-bundle"]
|
||||
CMD ["/app/micro-bundle"]
|
||||
|
||||
|
||||
#FROM testhub.szjixun.cn:9043/public/golang:1.20-alpine AS builder
|
||||
#
|
||||
#LABEL stage=gobuilder
|
||||
#ENV CGO_ENABLED 0
|
||||
#ENV GOPROXY https://goproxy.cn,direct
|
||||
#
|
||||
#WORKDIR /build
|
||||
#COPY . .
|
||||
#RUN go build -o micro-bundle ./
|
||||
#
|
||||
#FROM testhub.szjixun.cn:9043/public/self-alpine
|
||||
#
|
||||
#COPY --from=builder /build/micro-bundle /app/
|
||||
#COPY ./conf /app/conf
|
||||
#
|
||||
#ENV TZ Asia/Shanghai
|
||||
#ENV MODE_ENV k8stest
|
||||
#
|
||||
#WORKDIR /app
|
||||
#EXPOSE 20118
|
||||
#CMD ["./micro-bundle"]
|
Loading…
Reference in New Issue
Block a user