diff --git a/.github/workflows/deploy-dockerhub.yml b/.github/workflows/deploy-dockerhub.yml index 87719b0aae..db4c810127 100644 --- a/.github/workflows/deploy-dockerhub.yml +++ b/.github/workflows/deploy-dockerhub.yml @@ -13,7 +13,6 @@ on: jobs: dockerhub-push: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v3 - name: Dockerhub login diff --git a/Dockerfile b/Dockerfile index 9d34381fbf..c7005e98b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM node:16-alpine -RUN apk add --no-cache libc6-compat git python3 py3-pip make g++ +FROM node:18-alpine +RUN apk add --no-cache libc6-compat git python3 py3-pip make g++ libusb-dev eudev-dev linux-headers WORKDIR /app COPY . . # install deps -RUN yarn install +RUN yarn install --frozen-lockfile ENV NODE_ENV production diff --git a/package.json b/package.json index 44871e9bf8..eea885d6c4 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,9 @@ "serve": "npx -y serve out -p ${REVERSE_PROXY_UI_PORT:=8080}", "static-serve": "yarn build && yarn serve" }, + "engines": { + "node": ">=16" + }, "pre-commit": [ "lint" ],