Reactjs 为什么我的nginx服务器没有加载自定义字体

Reactjs 为什么我的nginx服务器没有加载自定义字体,reactjs,docker,nginx,Reactjs,Docker,Nginx,我使用react应用程序,我想使用nginx部署它,但是我的自定义字体没有加载,当我看到网络时,客户端不会发出任何请求来获取字体。当我使用express部署它时,会询问并加载字体。添加我的nginx.conf和dockerfile。 nginx.conf events { } http { server { listen 8080; location /db/ { proxy_pass proxy url;

我使用react应用程序,我想使用nginx部署它,但是我的自定义字体没有加载,当我看到网络时,客户端不会发出任何请求来获取字体。当我使用express部署它时,会询问并加载字体。添加我的nginx.conf和dockerfile。
nginx.conf

events {

}

http {
    server {
        listen 8080;

        location /db/ {
            proxy_pass proxy url;
        }

        location / {
            root /usr/src/app/build;
            index index.html;
        }
    }
}
Dockerfile

# Use the official image as a parent image.
FROM nginx

# Set the working directory.
WORKDIR /usr/src/app

# Copy the files from your host to the container.
COPY build /usr/src/app/build
COPY mime.types /usr/src/app

COPY nginx.conf /usr/src/app

# Add metadata to the image to describe which port the container is listening on at runtime.
EXPOSE 8080

# Run the specified command within the container.
CMD [ "nginx", "-c", "/usr/src/app/nginx.conf", "-g", "daemon off;" ]
(docker映像是在编译react项目(npm运行构建->react脚本构建)之后构建的)