nezha/Dockerfile
2022-07-07 13:38:44 +08:00

23 lines
553 B
Docker

ARG TARGETARCH
ARG TARGETOS
FROM $TARGETARCH/ubuntu:20.04
ENV TZ="Asia/Shanghai"
COPY ./script/entrypoint.sh /entrypoint.sh
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 && \
chmod +x /entrypoint.sh
WORKDIR /dashboard
COPY ./resource ./resource
COPY dist/dashboard-$TARGETOS-$TARGETARCH ./app
VOLUME ["/dashboard/data"]
EXPOSE 80 5555
ENTRYPOINT ["/entrypoint.sh"]