fix(docker): 添加api.airoport.co的主机映射到容器hosts文件
Some checks failed
CI / build (20.15.1) (push) Failing after 22m40s

This commit is contained in:
shanshanzhong 2025-12-07 08:28:37 -08:00
parent 2e4540095b
commit 162f8fe040
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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