add docker-compose.dev. edit dockerfile
parent
efef98e8b4
commit
7a1dc69188
|
@ -29,8 +29,8 @@ WORKDIR /app
|
|||
ENV NODE_ENV production
|
||||
ENV NEXT_TELEMETRY_DISABLED 1
|
||||
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nextjs
|
||||
# RUN addgroup --system --gid 1001 nodejs
|
||||
# RUN adduser --system --uid 1001 nextjs
|
||||
|
||||
RUN yarn add npm-run-all dotenv prisma
|
||||
|
||||
|
@ -46,7 +46,7 @@ COPY --from=builder /app/scripts ./scripts
|
|||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
|
||||
USER nextjs
|
||||
# USER nextjs
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
|
Loading…
Reference in New Issue