mirror of
https://github.com/fotoente/MIsskey-ebooks-bot
synced 2024-11-29 06:40:44 +00:00
Merge branch 'main' of https://github.com/fotoente/MIsskey-ebooks-bot
Docker support added
This commit is contained in:
commit
3a3ae0d8b6
2 changed files with 15 additions and 1 deletions
6
.github/workflows/dockerhub.yml
vendored
6
.github/workflows/dockerhub.yml
vendored
|
@ -9,13 +9,19 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
|
|
10
Dockerfile
10
Dockerfile
|
@ -1,8 +1,16 @@
|
|||
FROM python:3
|
||||
FROM python:3-alpine
|
||||
|
||||
RUN apk add --no-cache \
|
||||
py3-pip \
|
||||
py3-setuptools \
|
||||
python3-dev \
|
||||
git \
|
||||
build-base
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install git+https://github.com/yupix/Mi.py.git@v3.3.0
|
||||
|
||||
|
|
Loading…
Reference in a new issue