mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
fix: user switch for permissions to set chmod on entrypoint script
This commit is contained in:
parent
2dad778d0e
commit
3b17ba8aa3
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ RUN adduser --system --uid 1001 nextjs
|
|||
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
||||
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
||||
|
||||
USER nextjs
|
||||
USER root
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
|
@ -63,6 +63,7 @@ ENV PORT=3000
|
|||
ENV HOSTNAME="0.0.0.0"
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
CMD ["/entrypoint.sh"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue