Skip to content

Commit

Permalink
Merge pull request #4 from DotNetNomads/create-secrets-and-configs
Browse files Browse the repository at this point in the history
Dockerfile fix
  • Loading branch information
binali-rustamov authored Nov 20, 2023
2 parents d093aeb + 257be2b commit a209412
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
Dockerfile
**/*/
!PortainerClient/bin/Release/net7.0/linux-x64/publish/PortainerClient
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM ubuntu:20.04

WORKDIR /
COPY "PortainerClient/bin/Release/net7.0/linux-x64/publish/PortainerClient" "/usr/bin/portainerctl"

FROM bitnami/dotnet-sdk:7 AS build
COPY . /tmp
WORKDIR /tmp
RUN dotnet publish -c Release
FROM ubuntu:23.10
WORKDIR /app
COPY --from=build "tmp/PortainerClient/src/UltraMafia/bin/Release/net7.0/linux-x64/publish/PortainerClient" "/usr/bin/portainerctl"
RUN chmod +x /usr/bin/portainerctl

0 comments on commit a209412

Please sign in to comment.