your commit
This commit is contained in:
parent
0f74d4b0ae
commit
4f7af4797c
1 changed files with 3 additions and 1 deletions
|
|
@ -36,6 +36,8 @@ RUN chown nextjs:nodejs .next
|
|||
|
||||
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/node_modules/.bin/payload ./node_modules/.bin/payload
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/node_modules/payload ./node_modules/payload
|
||||
|
||||
USER nextjs
|
||||
|
||||
|
|
@ -43,4 +45,4 @@ EXPOSE 3001
|
|||
ENV PORT=3001
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
CMD ["sh", "-c", "node node_modules/payload/dist/bin/payload.js migrate && node server.js"]
|
||||
Loading…
Add table
Reference in a new issue