-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 774 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11-slim-bullseye
ENV PYTHONUNBUFFERED 1
ARG DEV_BUILD
WORKDIR /app
RUN apt update \
&& apt upgrade -y \
&& apt install -y build-essential ffmpeg make python3-dev \
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
COPY requirements/ /app/requirements
RUN pip install --no-cache-dir -U pip \
&& pip install --no-cache-dir -r /app/requirements/base.txt \
&& pip install --no-cache-dir -r /app/requirements/cli.txt \
&& pip install --no-cache-dir -r /app/requirements/livechat.txt \
&& pip install --no-cache-dir -r /app/requirements/transcription.txt \
&& if [ "$DEV_BUILD" = "true" ]; then pip install --no-cache-dir -r /app/requirements/dev.txt; fi
COPY . /app/