|
@@ -11,6 +11,10 @@ RUN --mount=type=cache,target=/go --mount=type=cache,target=/root/.cache/go-buil
|
|
|
|
|
|
FROM registry.cn-hangzhou.aliyuncs.com/tuon-pub/nginx:1.25.1
|
|
|
|
|
|
+RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/* && \
|
|
|
+ sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/* && \
|
|
|
+ apt -qq update && apt -qq install -y --no-install-recommends ca-certificates curl \
|
|
|
+
|
|
|
WORKDIR /app
|
|
|
COPY --from=builder /app/app /app
|
|
|
COPY conf /app/conf
|
|
@@ -19,12 +23,7 @@ COPY data /app/data
|
|
|
COPY frontend/dist /app/static/web
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
-RUN chmod +x /entrypoint.sh /app/app
|
|
|
-
|
|
|
-RUN rm -rf /app/static/web/config.js
|
|
|
-RUN rm -rf /etc/nginx/conf.d
|
|
|
-RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/*
|
|
|
-RUN sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/*
|
|
|
-RUN apt -qq update && apt -qq install -y --no-install-recommends ca-certificates curl
|
|
|
+RUN chmod +x /entrypoint.sh /app/app && rm -rf /app/static/web/config.js && \
|
|
|
+ rm -rf /etc/nginx/conf.d
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|