mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 04:38:14 -05:00
21 lines
412 B
Docker
21 lines
412 B
Docker
FROM alpine AS certs
|
|
RUN apk update && apk add ca-certificates
|
|
|
|
FROM busybox:stable-musl
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
|
|
COPY ./script/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
WORKDIR /dashboard
|
|
COPY dist/dashboard-${TARGETOS}-${TARGETARCH} ./app
|
|
|
|
VOLUME ["/dashboard/data"]
|
|
EXPOSE 8008
|
|
ARG TZ=Asia/Shanghai
|
|
ENV TZ=$TZ
|
|
ENTRYPOINT ["/entrypoint.sh"]
|