mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
💚 fix dockerfile
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,20 +1,22 @@
|
||||
FROM ubuntu:latest
|
||||
ARG TARGETARCH
|
||||
ARG TARGETOS
|
||||
|
||||
FROM $TARGETARCH/ubuntu:20.04
|
||||
|
||||
ARG TARGETPLATFORM
|
||||
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 &&
|
||||
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 target/$TARGETPLATFORM/dashboard ./app
|
||||
COPY dist/dashboard-$TARGETOS-$TARGETARCH ./app
|
||||
|
||||
VOLUME ["/dashboard/data"]
|
||||
EXPOSE 80 5555
|
||||
|
||||
Reference in New Issue
Block a user