mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 05:07:46 +00:00
fix: not copying static next files
This commit is contained in:
parent
54fb2d1eec
commit
11a7c8285b
1 changed files with 4 additions and 3 deletions
|
|
@ -28,12 +28,13 @@ ENV HOSTNAME=0.0.0.0
|
|||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
COPY --from=builder /app/backend/.next/standalone ./
|
||||
COPY --from=builder /app/backend/.next/static ./.next/static
|
||||
COPY --from=builder /app/backend/public ./public
|
||||
COPY --from=builder /app/backend/.next ./.next
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/backend/prisma ./prisma
|
||||
|
||||
RUN mkdir -p /app/.next/standalone/backend/uploads && chown -R nextjs:nodejs /app/.next/standalone/backend/uploads
|
||||
RUN mkdir -p /app/uploads && chown -R nextjs:nodejs /app/uploads
|
||||
|
||||
USER nextjs
|
||||
EXPOSE 3000
|
||||
CMD ["node", ".next/standalone/backend/server.js"]
|
||||
CMD ["node", "backend/server.js"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue