mirror of https://github.com/ouqiang/gocron
增加docker文档
parent
1ce41448c2
commit
43c267784d
|
@ -14,10 +14,12 @@ RUN make install-vue \
|
|||
|
||||
FROM alpine:3.7
|
||||
|
||||
RUN apk add --no-cache ca-certificates \
|
||||
RUN apk add --no-cache ca-certificates tzdata \
|
||||
&& addgroup -S app \
|
||||
&& adduser -S -g app app
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /go/src/github.com/ouqiang/gocron/bin/gocron .
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
FROM alpine:3.7
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata \
|
||||
&& addgroup -S app \
|
||||
&& adduser -S -g app app
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY gocron .
|
||||
|
||||
RUN chown -R app:app ./
|
||||
|
||||
EXPOSE 5920
|
||||
|
||||
USER app
|
||||
|
||||
ENTRYPOINT ["/app/gocron", "web"]
|
Loading…
Reference in New Issue