Skip to content

Commit

Permalink
🐛 🐳 Fix image
Browse files Browse the repository at this point in the history
  • Loading branch information
amaya382 committed Mar 2, 2020
1 parent e85f816 commit 58c9a96
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ LABEL maintainer "amaya <[email protected]>"
WORKDIR /opt/depreq
COPY . /opt/depreq
RUN dotnet publish Depreq \
-c Release --self-contained true -r linux-musl-x64 \
-c Release --self-contained true -r linux-x64 \
-p:PublishSingleFile=true -p:PublishTrimmed=true


# --- #


FROM alpine:3.11
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic
LABEL maintainer "amaya <[email protected]>"

COPY --from=builder /opt/depreq/Depreq/bin/Release/netcoreapp3.1/linux-musl-x64/publish/Depreq \
COPY --from=builder /opt/depreq/Depreq/bin/Release/netcoreapp3.1/linux-x64/publish/Depreq \
/usr/local/bin/depreq
RUN apk add --no-cache \
libstdc++ libintl

0 comments on commit 58c9a96

Please sign in to comment.