Commit cf7d6046 authored by Anton Borisov's avatar Anton Borisov

Update Dockerfile

parent eae901bb
Pipeline #22 passed with stage
in 2 minutes and 13 seconds
FROM microsoft/dotnet:2.2-sdk-alpine FROM microsoft/dotnet:2.1-sdk-alpine AS builder
WORKDIR /app
COPY ./Sources /var/www/build COPY ./Sources ./
RUN cd /var/www/build \ RUN ls
&& dotnet build \
&& cd DeStream.DeStreamD \
&& dotnet publish -c Release --framework netcoreapp2.1 --runtime alpine-x64 --output /var/www/app \
&& ls -la /var/www/app \
&& rm -rf /var/www/build
WORKDIR /var/www/app RUN dotnet build
ENTRYPOINT ["dotnet", "run", "/var/www/app/DeStream.DeStreamD.dll", "-testnet", "2>&1>", "/dev/null"] RUN cd DeStream.DeStreamD \
\ No newline at end of file && dotnet publish -c Release --framework netcoreapp2.1 --runtime alpine-x64 -o out
FROM microsoft/dotnet:2.1-runtime-alpine
WORKDIR /app
COPY --from=builder /app/DeStream.DeStreamD/out .
ENTRYPOINT ["dotnet", "DeStream.DeStreamD.dll", "-testnet"]
\ 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