Commit 4cdc5e2b authored by Anton Borisov's avatar Anton Borisov

Update Dockerfile

parent 9b206ad7
Pipeline #20 canceled with stage
in 6 seconds
FROM microsoft/dotnet:-sdk
FROM microsoft/dotnet:2.2-sdk-alpine
COPY ./Sources /var/www/app
COPY ./Sources /var/www/build
RUN cd /var/www/build \
&& 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 cd /var/www/app && dotnet build
\ No newline at end of file
ENTRYPOINT ["dotnet", "run", "/var/www/app/DeStream.DeStreamD.dll", "-testnet", "2>&1>", "/dev/null"]
\ 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