diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a89846a6274..d087fb93d64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ name: Node CI on: push: branches: - - master + - main pull_request: branches: diff --git a/.github/workflows/test_docker_build.yml b/.github/workflows/test_docker_build.yml new file mode 100644 index 00000000000..a698c2476b9 --- /dev/null +++ b/.github/workflows/test_docker_build.yml @@ -0,0 +1,19 @@ +name: Test Docker Build + +on: + push: + branches: + - main + + pull_request: + branches: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - run: docker build --no-cache -t flowise . diff --git a/Dockerfile b/Dockerfile index 77eaa9d651f..fc76cd00837 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,12 @@ # docker run -d -p 3000:3000 flowise FROM node:18-alpine -RUN apk add --update libc6-compat +RUN apk add --update libc6-compat python3 make g++ WORKDIR /usr/src/packages # Copy root package.json and lockfile -COPY package.json ./ -COPY yarn.lock ./ +COPY package.json yarn.loc[k] ./ # Copy components package.json COPY packages/components/package.json ./packages/components/package.json