一分钟搭建影视站,支持Docker等部署方式
adjust container build process (#22)
honeoka16961cdd0ce
diff --git a/.dockerignore b/.dockerignoreindex fab17ac..be27913 100644--- a/.dockerignore+++ b/.dockerignore@@ -1 +1,2 @@-// Empty file+.vscode/+readme.md\ No newline at end of filediff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.ymlindex cc4ae87..9bb83a4 100644--- a/.github/workflows/docker-build.yml+++ b/.github/workflows/docker-build.yml@@ -1,30 +1,41 @@-name: 打包上传到dockerHub+name: 'Build LibreTV image'on:push:branches:- main+ workflow_dispatch:jobs:- build-and-push:+ build:+ name: 'Build LibreTV image'runs-on: ubuntu-latest+ env:+ DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}+steps:- - name: Checkout code- uses: actions/checkout@v4+ - name: 'Check out repository'+ uses: actions/[email protected]+ with:+ fetch-depth: 0++ - name: 'Set up Docker QEMU'+ uses: docker/[email protected]- - name: Set up Docker Buildx- uses: docker/setup-buildx-action@v3+ - name: 'Set up Docker Buildx'+ uses: docker/[email protected]- - name: Login to Docker Hub- uses: docker/login-action@v3+ - name: 'Login to DockerHub'+ uses: docker/[email protected]with:username: ${{ secrets.DOCKER_USERNAME }}password: ${{ secrets.DOCKER_PASSWORD }}- - name: Build and push Docker image- uses: docker/build-push-action@v5+ - name: 'Build and push LibreTV image'+ uses: docker/[email protected]with:context: .- file: ./Dockerfile+ file: Dockerfilepush: true- tags: ${{ secrets.DOCKER_USERNAME }}/libretv:latest\ No newline at end of file+ tags: "${{ env.DOCKER_USERNAME }}/libretv:latest"+ platforms: linux/386, linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8, linux/s390x\ No newline at end of filediff --git a/Dockerfile b/Dockerfileindex cf055fe..fee9684 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,4 +1,2 @@-FROM nginx:latest-COPY . /usr/share/nginx/html-EXPOSE 80-CMD ["nginx", "-g", "daemon off;"]+FROM nginx:alpine+COPY . /usr/share/nginx/html\ No newline at end of file