fix: 调整构建镜像采用的镜像源

This commit is contained in:
wizardchen
2025-08-14 00:45:19 +08:00
committed by lyingbug
parent 8b43931886
commit 57c6e04e54
6 changed files with 211 additions and 195 deletions
+4 -7
View File
@@ -37,10 +37,9 @@ FROM alpine:3.17
WORKDIR /app
# Install runtime dependencies
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/main' > /etc/apk/repositories
RUN apk update --allow-untrusted
RUN apk upgrade --allow-untrusted
RUN apk add --no-cache build-base postgresql17-client mysql-client ca-certificates tzdata sed curl bash supervisor vim wget curl --allow-untrusted
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \
apk update && apk upgrade && \
apk add --no-cache build-base postgresql-client mysql-client ca-certificates tzdata sed curl bash supervisor vim wget
# Copy the binary from the builder stage
COPY --from=builder /app/WeKnora .
@@ -72,6 +71,4 @@ RUN mkdir -p /data/files && \
chown -R appuser:appuser /app /data/files
# Run supervisor instead of direct application start
CMD ["supervisord", "-c", "/etc/supervisor.d/supervisord.conf"]
# CMD ["sh", "/app/scripts/start_app.sh"]
# CMD ["sleep", "infinity"]
CMD ["supervisord", "-c", "/etc/supervisor.d/supervisord.conf"]