fix(docker): 添加api.airoport.co的主机映射到容器hosts文件
Some checks failed
CI / build (20.15.1) (push) Failing after 22m40s
Some checks failed
CI / build (20.15.1) (push) Failing after 22m40s
This commit is contained in:
parent
2e4540095b
commit
162f8fe040
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user