Skip to content

Commit

Permalink
Chore: fix dockerhub deployment (#2466)
Browse files Browse the repository at this point in the history
* Chore: fix dockerhub deployment

* Install libusb

* Rm test deployment
  • Loading branch information
katspaugh authored Aug 29, 2023
1 parent fece438 commit 210f997
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 210f997

Please sign in to comment.