fix(docker): copy node_modules to runner stage for drizzle-kit
All checks were successful
Deploy Waveform to VPS / deploy (push) Successful in 1m0s
All checks were successful
Deploy Waveform to VPS / deploy (push) Successful in 1m0s
This commit is contained in:
parent
1b77063d67
commit
454cc2bea8
1 changed files with 2 additions and 4 deletions
|
|
@ -53,13 +53,11 @@ COPY --from=builder /app/public ./public
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||||
|
|
||||||
# Copy the "config" and "db" folders for drizzle-kit into the runner
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
|
||||||
COPY --from=builder /app/drizzle.config.ts ./drizzle.config.ts
|
COPY --from=builder /app/drizzle.config.ts ./drizzle.config.ts
|
||||||
COPY --from=builder /app/db ./db
|
COPY --from=builder /app/db ./db
|
||||||
|
|
||||||
# Install drizzle-kit & tsx globally so that npx drizzle-kit works inside the container
|
|
||||||
RUN npm install -g drizzle-kit tsx
|
|
||||||
|
|
||||||
RUN mkdir -p /app/data && chown -R nextjs:nodejs /app/data
|
RUN mkdir -p /app/data && chown -R nextjs:nodejs /app/data
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue