mirror of
https://github.com/System-End/tts.git
synced 2026-04-19 22:05:08 +00:00
30 lines
614 B
Docker
30 lines
614 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV POETRY_VIRTUALENVS_CREATE=false
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
git \
|
|
ffmpeg \
|
|
pkg-config \
|
|
libffi-dev \
|
|
libsodium-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt /app/requirements.txt
|
|
|
|
RUN python -m pip install --upgrade pip setuptools wheel \
|
|
&& pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
COPY . /app
|
|
|
|
RUN useradd --create-home --shell /bin/bash app \
|
|
&& chown -R app:app /app
|
|
|
|
USER app
|
|
WORKDIR /home/app
|
|
|
|
CMD ["python", "/app/bot.py"]
|