nezha/Dockerfile

20 lines
414 B
Docker
Raw Permalink Normal View History

2024-09-02 11:19:43 -04:00
FROM alpine AS certs
RUN apk update && apk add ca-certificates
FROM busybox:stable-musl
2022-07-07 02:45:03 -04:00
ARG TARGETOS
ARG TARGETARCH
2024-09-02 11:19:43 -04:00
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
COPY ./script/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
2020-10-28 12:00:58 -04:00
WORKDIR /dashboard
2022-07-07 01:54:19 -04:00
COPY dist/dashboard-${TARGETOS}-${TARGETARCH} ./app
2020-10-28 12:00:58 -04:00
VOLUME ["/dashboard/data"]
2020-11-06 08:00:42 -05:00
EXPOSE 80 5555
ARG TZ=Asia/Shanghai
ENV TZ=$TZ
2022-05-17 07:52:02 -04:00
ENTRYPOINT ["/entrypoint.sh"]