mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
fix: update Dockerfile to install dependencies before deploying frontend, and remove project title and description from environment variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user