You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
950 B

  1. version: '2.1'
  2. services:
  3. ci-build:
  4. image: microsoft/aspnetcore-build:1.1.2
  5. volumes:
  6. - .:/src
  7. - ./cli-linux:/cli-linux
  8. working_dir: /src
  9. # Next line is using the .sln file to compile all the projects.
  10. # Sometime there is an issue in msbuild exits the process before finishing building the bits: (https://github.com/Microsoft/msbuild/issues/2153)
  11. # Random error: error MSB4017: The build stopped unexpectedly be cause of an unexpected logger failure.
  12. command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && dotnet restore ./eShopOnContainers-ServicesAndWebApps.sln && dotnet publish ./eShopOnContainers-ServicesAndWebApps.sln -c Release -o ./obj/Docker/publish"
  13. # NOTE: Using build-bits-linux.sh from Linux build container exits before ending.
  14. # command: /bin/bash -c "pushd ./src/Web/WebSPA && npm rebuild node-sass && popd && pushd /cli-linux && ./build-bits-linux.sh /src"