cloudnet-compose/worker/Dockerfile

12 lines
218 B
Docker
Raw Normal View History

2016-06-11 19:21:26 +02:00
FROM microsoft/dotnet:1.0.0-preview1
2015-11-15 20:59:29 +01:00
2016-06-11 19:21:26 +02:00
WORKDIR /app
2015-11-15 20:59:29 +01:00
2016-06-11 19:21:26 +02:00
ADD src/ /app/src/
2015-11-15 20:59:29 +01:00
2016-06-11 19:21:26 +02:00
RUN dotnet restore -v minimal src/ \
&& dotnet publish -c Release -o ./ src/Worker/ \
&& rm -rf src/ $HOME/.nuget/
2015-11-15 20:59:29 +01:00
2016-06-11 19:21:26 +02:00
CMD dotnet Worker.dll