💚 fix dockerfile

This commit is contained in:
naiba
2022-07-07 13:38:44 +08:00
parent 66d3e83e99
commit 9419b02cd3
3 changed files with 15 additions and 19 deletions

View File

@@ -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