Move build process from host to docker container during release process (#682)

This commit is contained in:
Ta-Ching Chen
2018-07-03 21:14:06 -07:00
committed by smruthi2187
parent 9daf97a9ab
commit 44be0f6859
7 changed files with 395 additions and 250 deletions
+8 -2
View File
@@ -1,9 +1,15 @@
FROM microsoft/dotnet:1.1-sdk AS builder
COPY * /proj/
RUN cd /proj && ./project-build.sh
# Build env image
FROM microsoft/dotnet:1.1.0-runtime
WORKDIR /fission-workdir
COPY out .
COPY --from=builder /proj/out .
EXPOSE 8888
ENTRYPOINT ["dotnet"]
CMD ["fission-dotnet.dll"]
CMD ["fission-dotnet.dll"]
+2 -3
View File
@@ -1,6 +1,5 @@
#!/bin/sh
THIS_DIR=$(realpath $(dirname $0))
docker run -v $THIS_DIR:/proj microsoft/dotnet:1.1-sdk sh -c "cd /proj && ./project-build.sh"
# clean up
rm -rf bin obj out