2024-09-02 11:19:43 -04:00
|
|
|
FROM alpine AS certs
|
|
|
|
RUN apk update && apk add ca-certificates
|
|
|
|
|
2024-09-02 10:13:13 -04:00
|
|
|
FROM busybox:stable-musl
|
2022-07-06 22:27:14 -04:00
|
|
|
|
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
|
2023-12-07 08:41:26 -05:00
|
|
|
COPY ./script/entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
2022-07-06 22:27:14 -04:00
|
|
|
|
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"]
|
2025-01-01 03:10:41 -05:00
|
|
|
EXPOSE 8008
|
2024-09-02 10:13:13 -04:00
|
|
|
ARG TZ=Asia/Shanghai
|
|
|
|
ENV TZ=$TZ
|
2025-01-01 03:10:41 -05:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|