nezha/Dockerfile

21 lines
484 B
Docker
Raw Normal View History

FROM alpine:edge
2022-07-07 14:45:03 +08:00
ARG TARGETOS
ARG TARGETARCH
RUN apk update && \
apk upgrade --no-cache && \
apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' >/etc/timezone && \
rm -rf /var/cache/apk/*
COPY ./script/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
2020-10-29 00:00:58 +08:00
WORKDIR /dashboard
2022-07-07 13:54:19 +08:00
COPY dist/dashboard-${TARGETOS}-${TARGETARCH} ./app
2020-10-29 00:00:58 +08:00
VOLUME ["/dashboard/data"]
2020-11-06 21:00:42 +08:00
EXPOSE 80 5555
2022-05-17 19:52:02 +08:00
ENTRYPOINT ["/entrypoint.sh"]