2023-12-07 20:55:17 -05:00
|
|
|
# latest 镜像还没有 riscv64 https://hub.docker.com/_/alpine/tags
|
2023-12-07 08:41:26 -05:00
|
|
|
FROM alpine:edge
|
2022-07-06 22:27:14 -04:00
|
|
|
|
2022-07-07 02:45:03 -04:00
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
2023-12-07 08:41:26 -05:00
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade --no-cache && \
|
|
|
|
apk add --no-cache tzdata && \
|
|
|
|
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
|
|
echo 'Asia/Shanghai' >/etc/timezone && \
|
|
|
|
rm -rf /var/cache/apk/*
|
2022-07-06 22:27:14 -04:00
|
|
|
|
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"]
|
2020-11-06 08:00:42 -05:00
|
|
|
EXPOSE 80 5555
|
2022-05-17 07:52:02 -04:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|