Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker.yml #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

# setup Docker buld action

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand All @@ -47,6 +49,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: ./
platforms: linux/amd64,linux/arm64
tags: jvt038/metatube:latest
push: ${{ github.ref == 'refs/heads/master' }}
- name: Image digest
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ EXPOSE $PORT
COPY . /config/
RUN \
apk update && \
apk add --no-cache python3-dev libffi-dev gcc musl-dev make ffmpeg libmagic && \
apk add -t build-deps --no-cache python3-dev libffi-dev gcc g++ musl-dev make file && \
apk add --no-cache ffmpeg libmagic && \
mkdir -p /config && \
python3 -m pip install --upgrade pip && \
pip3 install -r /config/requirements.txt && \
apk del --purge python3-dev libffi-dev gcc musl-dev make && \
apk del --purge build-deps && \
mkdir -p $DOWNLOADS

ENTRYPOINT ["/usr/local/bin/python3", "config/metatube.py"]