mirror of https://github.com/ouqiang/gocron
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
288 B
20 lines
288 B
6 years ago
|
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"]
|