9 lines
382 B
Docker
9 lines
382 B
Docker
FROM alpine AS runner
|
|
WORKDIR /app
|
|
COPY ./main .
|
|
RUN echo "https://mirrors.aliyun.com/alpine/v3.8/main/" > /etc/apk/repositories \
|
|
&& echo "https://mirrors.aliyun.com/alpine/v3.8/community/" >> /etc/apk/repositories \
|
|
&& apk add --no-cache tzdata \
|
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& echo Asia/Shanghai > /etc/timezone
|
|
ENTRYPOINT ["./main"] |