mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
23751440c6
* ci: use matrix to reduce build time * docker: change base image to busybox * reuse workflows * only download ipinfo db on tag pushes * goreleaser
16 lines
302 B
Docker
16 lines
302 B
Docker
FROM busybox:stable-musl
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
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"] |