将hosts配置从Dockerfile中移除,改为在docker run命令中使用--add-host参数添加
This commit is contained in:
@@ -16,9 +16,6 @@ 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