Merge 7856bec710d83e779520c3e5e76aa279c9390976 into 826f21763d9b9b80d14687562f3b51ce56a8a061
This commit is contained in:
commit
e5d6b779fb
32
.github/workflows/docker-publish.yml
vendored
Normal file
32
.github/workflows/docker-publish.yml
vendored
Normal 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
9
Dockerfile-rpi
Normal 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" ]
|
||||
Loading…
x
Reference in New Issue
Block a user