Upgrade pip in GPU image build
This commit is contained in:
@@ -15,9 +15,9 @@ RUN wget "https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/y
|
|||||||
RUN chmod a+rx /usr/local/bin/yt-dlp
|
RUN chmod a+rx /usr/local/bin/yt-dlp
|
||||||
|
|
||||||
# Backend setup
|
# Backend setup
|
||||||
FROM devopsworks/golang-upx:latest as backend-builder
|
FROM devopsworks/golang-upx:latest AS backend-builder
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./backend /app
|
COPY ./backend /app
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
@@ -26,7 +26,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o whishper . && \
|
|||||||
RUN chmod a+rx whishper
|
RUN chmod a+rx whishper
|
||||||
|
|
||||||
# Frontend setup
|
# Frontend setup
|
||||||
FROM node:alpine as frontend
|
FROM node:alpine AS frontend
|
||||||
ENV PNPM_HOME="/pnpm"
|
ENV PNPM_HOME="/pnpm"
|
||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN npm install --global pnpm@8.15.9
|
RUN npm install --global pnpm@8.15.9
|
||||||
@@ -42,7 +42,7 @@ ENV BODY_SIZE_LIMIT=0
|
|||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
# Base container
|
# Base container
|
||||||
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 as base
|
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 AS base
|
||||||
|
|
||||||
ENV PYTHON_VERSION=3.10
|
ENV PYTHON_VERSION=3.10
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ RUN ln -s -f /usr/bin/python${PYTHON_VERSION} /usr/bin/python3 && \
|
|||||||
# Python service setup
|
# Python service setup
|
||||||
COPY ./transcription-api /app/transcription
|
COPY ./transcription-api /app/transcription
|
||||||
WORKDIR /app/transcription
|
WORKDIR /app/transcription
|
||||||
RUN pip install "Cython<3" wheel && \
|
RUN python -m pip install --upgrade pip setuptools wheel "Cython<3" && \
|
||||||
pip install "av==10.0.0" --no-build-isolation && \
|
pip install "av==10.0.0" --no-build-isolation && \
|
||||||
pip install -r requirements.txt && \
|
pip install -r requirements.txt && \
|
||||||
pip install python-multipart && \
|
pip install python-multipart && \
|
||||||
|
|||||||
Reference in New Issue
Block a user