Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

677
Vistas
No static files from the wwwroot folder after dockerize .net core mvc application on Rasperry Pi

I'm new in docker and I have a problem I can't deal with. I created .net core MVC application and this app is supposed to work on raspberry pi, so I dockerized my app on raspberry on HypriotOS and everything is good, but some images from wwwroot (default static files folder) is not Found (404). In wwwroot folder I have some css, js and images files and css, js and few images are available, but few .png files no. I don't have idea why.

  • .net core version is 2.2
  • I tired add line VOLUME ["/wwwroot"] in my Dockerfile
  • in Startup.Configure() method I have line app.UseStaticFiles();

My Dockerfile

FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
WORKDIR /app

# copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# copy everything else and build app
COPY . ./
RUN dotnet publish -c Release -o out

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS runtime
WORKDIR /app
COPY --from=build /app/out .
ENTRYPOINT ["dotnet", "TestApp.dll"]

Commands to build and run Docker image:

docker build -t testapp .
docker run  -p 8080:80 --name testapp testapp

Dockerize passes correctly, no errors. The application is accessible from the outside, everything works, but some graphics are not displayed (404 Not Found).

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Check your .dockerignore file for anything that might match the missing files/path. That's what fixed this for me.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda