Merge 7856bec710d83e779520c3e5e76aa279c9390976 into 826f21763d9b9b80d14687562f3b51ce56a8a061

This commit is contained in:
mariolima 2025-12-31 11:43:53 -03:00 committed by GitHub
commit e5d6b779fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

32
.github/workflows/docker-publish.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Docker
on:
push:
branches:
- dev-rpi-docker
pull_request:
env:
PLATFORM: linux/arm/v7
IMAGE_NAME: dizquetv:arm7
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Build and Push image
run: |
docker buildx build --platform "linux/arm/v7" --tag $IMAGE_NAME --file ./Dockerfile-rpi --output type=image,push=true .

9
Dockerfile-rpi Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:latest
RUN apk add --update nodejs npm
RUN apk add ffmpeg
WORKDIR /usr/app
COPY ./ /usr/app
RUN npm install
RUN npm run build
EXPOSE 8000
CMD [ "npm","run","start" ]