nezha/Dockerfile

21 lines
518 B
Docker
Raw Normal View History

FROM ubuntu:latest
2020-10-28 12:14:31 -04:00
ARG TARGETPLATFORM
ENV TZ="Asia/Shanghai"
2022-05-17 08:54:01 -04:00
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 &&
2022-05-17 07:52:02 -04:00
chmod +x /entrypoint.sh
2020-10-28 12:00:58 -04:00
WORKDIR /dashboard
2020-10-28 12:14:31 -04:00
COPY ./resource ./resource
COPY target/$TARGETPLATFORM/dashboard ./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"]