diff --git a/Dockerfile b/Dockerfile index dff3da6..072a4ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,9 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static # Create data directory for SQLite RUN mkdir -p /app/data && chown nextjs:nodejs /app/data +COPY --chown=nextjs:nodejs start.sh ./ +RUN chmod +x start.sh + USER nextjs EXPOSE 3000 @@ -55,7 +58,4 @@ ENV PORT 3000 # set hostname to localhost ENV HOSTNAME "0.0.0.0" -COPY --chown=nextjs:nodejs start.sh ./ -RUN chmod +x start.sh - CMD ["./start.sh"]