Skip to content

Instantly share code, notes, and snippets.

@NilsMoller
Created February 17, 2021 14:05
Show Gist options
  • Save NilsMoller/8b886dfbd772be1e1d319a733d45ceac to your computer and use it in GitHub Desktop.
Save NilsMoller/8b886dfbd772be1e1d319a733d45ceac to your computer and use it in GitHub Desktop.
PS D:\Work\Projects\Git_repos\proep-spring-2021\API> docker build -t proepapi . [+] Building 0.5s (18/18) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 684B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 382B 0.0s
=> [internal] load metadata for mcr.microsoft.com/dotnet/sdk:5.0-buster-slim 0.3s
=> [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim 0.0s
=> [base 1/2] FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 7.53kB 0.0s
=> [build 1/7] FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim@sha256:8ba4e9f77d20e047c1cb945bc2d6b55c5fc218d8a33dbbe256363f0b2543a524 0.0s
=> CACHED [base 2/2] WORKDIR /app 0.0s
=> CACHED [final 1/2] WORKDIR /app 0.0s
=> CACHED [build 2/7] WORKDIR /src 0.0s
=> CACHED [build 3/7] COPY [API.csproj, ] 0.0s
=> CACHED [build 4/7] RUN dotnet restore "./API.csproj" 0.0s
=> CACHED [build 5/7] COPY . . 0.0s
=> CACHED [build 6/7] WORKDIR /src/. 0.0s
=> CACHED [build 7/7] RUN dotnet build "API.csproj" -c Release -o /app/build 0.0s
=> CACHED [publish 1/1] RUN dotnet publish "API.csproj" -c Release -o /app/publish 0.0s
=> CACHED [final 2/2] COPY --from=publish /app/publish . 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:9f3b92214618389f1eec5dc9d4d4499b8c555bdfe579a4097ec6e343d7c2a064 0.0s
=> => naming to docker.io/library/proepapi 0.0s
PS D:\Work\Projects\Git_repos\proep-spring-2021\API> heroku login heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/cli/browser/bc98274f-f097-4a87-bda3-4c20c3b211e5?requestor=SFMyNTY.g2gDbQAAAA03Ny4yNDguODIuMTk5bgYAYnBEsHcBYgABUYA.-I1NXDM46ZCTarNw_J2I7fgptKebBi9aoSs4m5yhWwE
Logging in... done
Logged in as [email protected]
PS D:\Work\Projects\Git_repos\proep-spring-2021\API> heroku container:login Login Succeeded
PS D:\Work\Projects\Git_repos\proep-spring-2021\API> heroku container:push -a proepapi web === Building web (D:\Work\Projects\Git_repos\proep-spring-2021\API\Dockerfile)
[+] Building 0.6s (18/18) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 684B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 382B 0.0s
=> [internal] load metadata for mcr.microsoft.com/dotnet/sdk:5.0-buster-slim 0.4s
=> [internal] load metadata for mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim 0.0s
=> [build 1/7] FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim@sha256:8ba4e9f77d20e047c1cb945bc2d6b55c5fc218d8a33dbbe256363f0b2543a524 0.0s
=> [base 1/2] FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 7.53kB 0.0s
=> CACHED [base 2/2] WORKDIR /app 0.0s
=> CACHED [final 1/2] WORKDIR /app 0.0s
=> CACHED [build 2/7] WORKDIR /src 0.0s
=> CACHED [build 3/7] COPY [API.csproj, ] 0.0s
=> CACHED [build 4/7] RUN dotnet restore "./API.csproj" 0.0s
=> CACHED [build 5/7] COPY . . 0.0s
=> CACHED [build 6/7] WORKDIR /src/. 0.0s
=> CACHED [build 7/7] RUN dotnet build "API.csproj" -c Release -o /app/build 0.0s
=> CACHED [publish 1/1] RUN dotnet publish "API.csproj" -c Release -o /app/publish 0.0s
=> CACHED [final 2/2] COPY --from=publish /app/publish . 0.0s
=> exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:9f3b92214618389f1eec5dc9d4d4499b8c555bdfe579a4097ec6e343d7c2a064 0.0s
=> => naming to registry.heroku.com/proepapi/web 0.0s
=== Pushing web (D:\Work\Projects\Git_repos\proep-spring-2021\API\Dockerfile)
Using default tag: latest
The push refers to repository [registry.heroku.com/proepapi/web]
f7d959792ef1: Layer already exists 5f70bf18a086: Layer already exists 05b58df19104: Layer already exists 6293dfcf2f90: Layer already exists 6e96e6a20e40: Layer already exists 88f62d0c715d: Layer already exists bb50d1ecf116: Layer already exists 9eb82f04c782: Layer already exists latest: digest: sha256:0908ef93be069c00e1e3b81e3677fee502f72c9a73051431702a0e6fb2401f16 size: 1995
Your image has been successfully pushed. You can now release it with the 'container:release' command.
PS D:\Work\Projects\Git_repos\proep-spring-2021\API> heroku container:release -a proepapi web Releasing images web to proepapi... done
! The process type web was not updated, because it is already running the specified docker image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment