Category : docker-build

I have an application in dockerfile where it is necessary to call a .sh file to download packages, but there is always an error when calling this file. My dockerfile is: FROM alpine:3.12 as builder ARG VERSION=7.16.0 ARG DISTRO=tomcat ARG SNAPSHOT=true ARG JMX_PROMETHEUS_VERSION=0.12.0 RUN apk add –no-cache bash ca-certificates maven tar wget xmlstarlet COPY settings.xml ..

Read more

How can I calculate a deterministic and reproducible checksum of a docker image, locally, without pinging any registry? The checksum should not depend on the image name or in which registry it lives. It should solely depend on the content of all layers. For example, assume the following: a given file a a dockerfile with ..

Read more

I get the error: failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest when building the following Dockerfile: FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8 COPY . /inetpub/wwwroot Source: Docker..

Read more

When running my create-react-app server on my local machine with npm run start, the server starts and works fine. However, when attempting to dockerize my app, I get the error: #12 2.029 Error: Cannot find module ‘/usr/src/app/sms-fe/src/server.tsx’ #12 2.029 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1085:15) #12 2.029 at Function.Module._load (internal/modules/cjs/loader.js:928:27) #12 2.029 at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) #12 ..

Read more

I am trying to use Cache Task in Azure Pipelines for the Docker setup. According to the documentation I need to set below parameters: Key (Required) Path (Required) RestoreKeys (Optional) – task: [email protected] inputs: key: ‘docker | "$(Agent.OS)" | cache’ path: ‘$(Pipeline.Workspace)/docker’ Unfortunately, the post-job for Cache task always failing with this error. Any suggestions? ..

Read more

I’m experimenting with reproducible Docker builds and recently discovered docker build –network=none. While looking at the documentation, I realized that –network has other possible options that I could imagine myself using, such as bridge (default) or host. I don’t understand the use case for –network container:<name|id>, as described in the documentation. Could this for example ..

Read more

My Docker File – FROM mcr.microsoft.com/dotnet/aspnet:3.1 ENV ASPNETCORE_URLS=http://*:5000 ENV ASPNETCORE_ENVIRONMENT="production" EXPOSE 5000 WORKDIR /app COPY ./dist . ENTRYPOINT ["dotnet", "JustLogin.API.dll"] The Image builds successfully via command prompt but when trying to run in it via visual studio it throws error and by docker desktop it doesn’t shows any error but site still doesn’t run Source: ..

Read more