mylomen-server/Dockerfile
2023-06-04 22:54:54 +08:00

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"]