mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 05:07:46 +00:00
fix: 11a7c7828 part 3: fragile dockerfile
This commit is contained in:
parent
ba03f0d4d9
commit
c41360eaad
1 changed files with 4 additions and 3 deletions
|
|
@ -28,9 +28,10 @@ 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 ./standalone
|
||||
COPY --from=builder /app/backend/.next/static ./standalone/backend/.next/static
|
||||
COPY --from=builder /app/backend/public ./standalone/backend/public
|
||||
# I know all the paths are messed up but I don't have time to fix it
|
||||
COPY --from=builder /app/backend/public ./public
|
||||
COPY --from=builder /app/backend/.next ./.next
|
||||
COPY --from=builder /app/backend/.next/static ./.next/standalone/backend/.next/static
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue