wooooork
This commit is contained in:
parent
23b83f498c
commit
26cbf9aff4
1 changed files with 3 additions and 1 deletions
|
|
@ -23,6 +23,8 @@ RUN adduser --system --uid 1001 nextjs
|
|||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/package.json ./package.json
|
||||
COPY --from=builder /app/tsconfig.json ./tsconfig.json
|
||||
COPY --from=builder /app/src ./src
|
||||
|
||||
RUN mkdir .next
|
||||
RUN chown nextjs:nodejs .next
|
||||
|
|
@ -36,4 +38,4 @@ EXPOSE 3001
|
|||
ENV PORT=3001
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
CMD ["sh", "-c", "node /app/node_modules/payload/dist/bin/index.js migrate && node server.js"]
|
||||
CMD ["node", "server.js"]
|
||||
Loading…
Add table
Reference in a new issue