Commit 0d09415c authored by Anton Borisov's avatar Anton Borisov

Update Dockerfile

parent 5696cac2
Pipeline #1232 passed with stages
in 3 minutes and 31 seconds
FROM microsoft/dotnet:2.1-sdk-alpine AS builder FROM microsoft/dotnet:2.1-sdk-alpine AS builder
WORKDIR /app WORKDIR /app
COPY ./Sources ./ COPY ./Sources ./
...@@ -9,7 +10,11 @@ RUN cd DeStream.DeStreamD \ ...@@ -9,7 +10,11 @@ RUN cd DeStream.DeStreamD \
&& dotnet publish -c Release --framework netcoreapp2.1 --runtime alpine-x64 -o out && dotnet publish -c Release --framework netcoreapp2.1 --runtime alpine-x64 -o out
FROM microsoft/dotnet:2.1-runtime-alpine FROM microsoft/dotnet:2.1-runtime-alpine
WORKDIR /app WORKDIR /app
RUN apk update && apk add curl
COPY --from=builder /app/DeStream.DeStreamD/out . COPY --from=builder /app/DeStream.DeStreamD/out .
ENTRYPOINT ["dotnet", "DeStream.DeStreamD.dll"] ENTRYPOINT ["dotnet", "DeStream.DeStreamD.dll"]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment