2022-07-07 13:38:44 +08:00
|
|
|
ARG TARGETARCH
|
|
|
|
ARG TARGETOS
|
|
|
|
|
|
|
|
FROM $TARGETARCH/ubuntu:20.04
|
2020-10-29 00:14:31 +08:00
|
|
|
|
2021-01-19 09:59:04 +08:00
|
|
|
ENV TZ="Asia/Shanghai"
|
2022-07-07 10:27:14 +08:00
|
|
|
|
2022-05-17 20:54:01 +08:00
|
|
|
COPY ./script/entrypoint.sh /entrypoint.sh
|
2022-07-07 10:27:14 +08:00
|
|
|
|
2022-07-07 13:38:44 +08:00
|
|
|
RUN export DEBIAN_FRONTEND="noninteractive" && \
|
|
|
|
apt update && apt install -y ca-certificates tzdata && \
|
|
|
|
update-ca-certificates && \
|
|
|
|
ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
|
|
|
dpkg-reconfigure tzdata && \
|
2022-05-17 19:52:02 +08:00
|
|
|
chmod +x /entrypoint.sh
|
2022-07-07 10:27:14 +08:00
|
|
|
|
2020-10-29 00:00:58 +08:00
|
|
|
WORKDIR /dashboard
|
2020-10-29 00:14:31 +08:00
|
|
|
COPY ./resource ./resource
|
2022-07-07 13:38:44 +08:00
|
|
|
COPY dist/dashboard-$TARGETOS-$TARGETARCH ./app
|
2020-10-29 00:00:58 +08:00
|
|
|
|
|
|
|
VOLUME ["/dashboard/data"]
|
2020-11-06 21:00:42 +08:00
|
|
|
EXPOSE 80 5555
|
2022-05-17 19:52:02 +08:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|