This commit is contained in:
@@ -8,6 +8,8 @@ WORKDIR /app
|
||||
RUN groupadd -r -g 1001 nodejs && \
|
||||
useradd -r -u 1001 -g nodejs -d /home/nextjs -m nextjs
|
||||
|
||||
RUN echo "103.150.215.40 api.airoport.co" >> /etc/hosts
|
||||
|
||||
# Change to non-root user
|
||||
USER nextjs
|
||||
|
||||
|
||||
@@ -16,6 +16,9 @@ COPY ./apps/user/public ./apps/user/public
|
||||
# Change ownership to non-root user
|
||||
RUN chown -R nextjs:nodejs /app
|
||||
|
||||
RUN echo "103.150.215.40 api.airoport.co" >> /etc/hosts
|
||||
|
||||
|
||||
USER nextjs
|
||||
|
||||
# Disable Next.js telemetry
|
||||
|
||||
Reference in New Issue
Block a user