mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
20 lines
414 B
Docker
20 lines
414 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 80 5555
|
|
ARG TZ=Asia/Shanghai
|
|
ENV TZ=$TZ
|
|
ENTRYPOINT ["/entrypoint.sh"] |