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

fix: resolve wget's certificate issue in Docker build #75

Merged
merged 1 commit into from
Sep 15, 2023
Merged
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
38 changes: 38 additions & 0 deletions .github/workflows/docker-dev-gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Docker build dev gpu

on:
workflow_dispatch:
push:
branches:
- 'dev'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile_GPU
push: true
platforms: 'linux/amd64'
tags: artrajz/vits-simple-api:dev-gpu
cache-from: type=gha
cache-to: type=gha,mode=max
4 changes: 3 additions & 1 deletion Dockerfile_GPU
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -yq build-essential espeak-ng cmake wget && \
apt-get install -yq build-essential espeak-ng cmake wget ca-certificates && \
update-ca-certificates && \
apt-get clean && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*


# Install jemalloc
RUN wget https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-5.3.0.tar.bz2 && \
tar -xvf jemalloc-5.3.0.tar.bz2 && \
Expand Down