fix: create public directory and simplify Dockerfile COPY logic
This commit is contained in:
parent
957663e29a
commit
8646777f8d
2 changed files with 1 additions and 3 deletions
|
|
@ -22,9 +22,7 @@ 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/public ./public
|
||||
|
||||
RUN mkdir -p /app/data && chown nextjs:nodejs /app/data
|
||||
RUN mkdir -p /app/public /app/data && chown -R nextjs:nodejs /app/public /app/data
|
||||
|
||||
ENV NODE_ENV=production PORT=3000 HOSTNAME=0.0.0.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue