🐳 完善Dockerfile
This commit is contained in:
parent
112a67a6cb
commit
200820df93
@ -12,7 +12,7 @@ WORKDIR /builder
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod download && go build -o app
|
RUN go mod download && go build -o app
|
||||||
RUN ls -lh && chmod +x ./app
|
RUN ls -lh && chmod +x ./app
|
||||||
FROM golang:alpine as runner
|
FROM alpine as runner
|
||||||
MAINTAINER LiXunHuan(lxh@cxh.cn)
|
MAINTAINER LiXunHuan(lxh@cxh.cn)
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
|
Loading…
Reference in New Issue
Block a user