🐳 脚本完善
All checks were successful
BuildImage / build-image (push) Successful in 1m7s

This commit is contained in:
李寻欢 2023-11-30 11:48:47 +08:00
parent dc8a7e7118
commit e80fe2a7a0

View File

@ -7,7 +7,7 @@ COPY . .
RUN go version
RUN go mod download && go build -o app
RUN ls -lh && chmod +x ./app
RUN ls -lh && chmod -R +x ./*
FROM code.hyxc1.com/open/alpine:3.16.0 as runner
LABEL org.opencontainers.image.authors="lxh@cxh.cn"
@ -17,5 +17,5 @@ EXPOSE 8080
WORKDIR /app
COPY --from=builder /builder/app ./app
COPY ./views ./views
COPY --from=builder /builder/views ./views
CMD ./app