FIx for deploying application.

This commit is contained in:
yuanhau 2025-05-10 06:38:13 +08:00
parent f17aea24cd
commit 4aab557523
3 changed files with 15 additions and 3 deletions

View file

@ -6,10 +6,11 @@
# Copy package files
COPY package.json ./
COPY bun.lockb* package-lock.json* yarn.lock* ./
COPY bun.lock* package-lock.json* yarn.lock* ./
# Install dependencies
RUN bun install --frozen-lockfile || bun install
RUN bun pm untrusted
RUN bun install --prod
# Copy source files
COPY . .
@ -30,7 +31,6 @@
for dir in ".output" "dist" "build" ".next"; do\n\
if [ -d "/build/$dir" ]; then\n\
mkdir -p "$dir"\n\
cp -r "/build/$dir/." "$dir/"\n\
fi\n\
done' > /copy-builds.sh && chmod +x /copy-builds.sh