Move build process from host to docker container during release process (#682)
This commit is contained in:
committed by
smruthi2187
parent
9daf97a9ab
commit
44be0f6859
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user