Skip to content

Commit

Permalink
🐳 fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SydneyOwl committed Nov 20, 2024
1 parent 4785f61 commit 9e51eea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /source
ENV TZ=Asia/Shanghai
ARG DEBIAN_FRONTEND=noninteractive
COPY . .
RUN ls && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && \
apt update -y && \
apt install --yes --no-install-recommends \
Expand All @@ -14,6 +14,6 @@ RUN ls && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/tim
sed -i 's/@COMMIT_HASH@/DockerVersion/g' Properties/VERSION.cs && \
sed -i 's/@TAG_NAME@/DockerVersion/g' Properties/VERSION.cs && \
sed -i "s/@BUILD_TIME@/$(date)/g" Properties/VERSION.cs && \
chmod +x entrypoint.sh && mv entrypoint.sh /
chmod +x entrypoint.sh && mv entrypoint.sh
USER $APP_UID
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 9e51eea

Please sign in to comment.