Fedir Zadniprovskyi commited on
Commit
3d5e897
1 Parent(s): 39ee116

fix: dockerfiles

Browse files
Files changed (3) hide show
  1. Dockerfile.cpu +4 -4
  2. Dockerfile.cuda +4 -4
  3. Taskfile.yaml +2 -2
Dockerfile.cpu CHANGED
@@ -1,13 +1,13 @@
1
  FROM ubuntu:22.04
2
- # hadolint ignore=DL3008,DL4006
3
  RUN apt-get update && \
4
- apt-get install -y --no-install-recommends curl software-properties-common && \
5
  add-apt-repository ppa:deadsnakes/ppa && \
6
  apt-get update && \
7
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.11 python3.11-distutils && \
 
8
  apt-get clean && \
9
- rm -rf /var/lib/apt/lists/* && \
10
- curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
11
  RUN pip install --no-cache-dir poetry==1.8.2
12
  WORKDIR /root/faster-whisper-server
13
  COPY pyproject.toml poetry.lock ./
 
1
  FROM ubuntu:22.04
2
+ # hadolint ignore=DL3008,DL3015,DL4006
3
  RUN apt-get update && \
4
+ apt-get install -y curl software-properties-common && \
5
  add-apt-repository ppa:deadsnakes/ppa && \
6
  apt-get update && \
7
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.11 python3.11-distutils && \
8
+ curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 && \
9
  apt-get clean && \
10
+ rm -rf /var/lib/apt/lists/*
 
11
  RUN pip install --no-cache-dir poetry==1.8.2
12
  WORKDIR /root/faster-whisper-server
13
  COPY pyproject.toml poetry.lock ./
Dockerfile.cuda CHANGED
@@ -1,13 +1,13 @@
1
  FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
2
- # hadolint ignore=DL3008,DL4006
3
  RUN apt-get update && \
4
- apt-get install -y --no-install-recommends curl software-properties-common && \
5
  add-apt-repository ppa:deadsnakes/ppa && \
6
  apt-get update && \
7
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.11 python3.11-distutils && \
 
8
  apt-get clean && \
9
- rm -rf /var/lib/apt/lists/* && \
10
- curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
11
  RUN pip install --no-cache-dir poetry==1.8.2
12
  WORKDIR /root/faster-whisper-server
13
  COPY pyproject.toml poetry.lock ./
 
1
  FROM nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04
2
+ # hadolint ignore=DL3008,DL3015,DL4006
3
  RUN apt-get update && \
4
+ apt-get install -y curl software-properties-common && \
5
  add-apt-repository ppa:deadsnakes/ppa && \
6
  apt-get update && \
7
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3.11 python3.11-distutils && \
8
+ curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 && \
9
  apt-get clean && \
10
+ rm -rf /var/lib/apt/lists/*
 
11
  RUN pip install --no-cache-dir poetry==1.8.2
12
  WORKDIR /root/faster-whisper-server
13
  COPY pyproject.toml poetry.lock ./
Taskfile.yaml CHANGED
@@ -13,9 +13,9 @@ tasks:
13
  - Dockerfile.*
14
  - faster_whisper_server/*.py
15
  create-multi-arch-builder: docker buildx create --name main --driver=docker-container
16
- build-and-push:
17
  cmds:
18
- - docker compose build --builder main --push
19
  sources:
20
  - Dockerfile.*
21
  - faster_whisper_server/*.py
 
13
  - Dockerfile.*
14
  - faster_whisper_server/*.py
15
  create-multi-arch-builder: docker buildx create --name main --driver=docker-container
16
+ docker-build:
17
  cmds:
18
+ - docker compose build --builder main {{.CLI_ARGS}}
19
  sources:
20
  - Dockerfile.*
21
  - faster_whisper_server/*.py