fix: update Dockerfile to install dependencies before deploying frontend, and remove project title and description from environment variables

This commit is contained in:
keven1024
2025-06-03 11:40:54 +08:00
parent dcb5acb6d2
commit 3eee404868

View File

@@ -5,7 +5,7 @@ FROM front-base AS front-deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY . .
RUN corepack enable pnpm && pnpm --filter=015-front deploy dist
RUN corepack enable pnpm && pnpm i && pnpm --filter=015-front deploy dist
FROM front-base AS front-builder
@@ -41,7 +41,7 @@ COPY 015.sh /app/015.sh
# Change the port and host
ENV PORT=80 HOST=0.0.0.0
ENV SITE_URL="http://localhost" SITE_TITLE="015" SITE_DESC="015 是一个开源的临时内容分享平台项目, 支持文件和文本上传, 下载, 分享"
ENV SITE_URL="http://localhost"
ENV UPLOAD_PATH="/uploads"
EXPOSE 80