mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
23 lines
545 B
Docker
23 lines
545 B
Docker
FROM ubuntu:focal
|
|
|
|
ENV TZ="Asia/Shanghai"
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
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"] |