31 lines
712 B
Docker
31 lines
712 B
Docker
FROM python:3.11-slim
|
|
WORKDIR /AstrBot
|
|
|
|
COPY . /AstrBot/
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
build-essential \
|
|
python3-dev \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
ca-certificates \
|
|
bash \
|
|
ffmpeg \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN apt-get update && apt-get install -y curl gnupg && \
|
|
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
|
|
apt-get install -y nodejs && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN python -m pip install uv
|
|
RUN uv pip install -r requirements.txt --no-cache-dir --system
|
|
RUN uv pip install socksio uv pilk --no-cache-dir --system
|
|
|
|
EXPOSE 6185
|
|
EXPOSE 6186
|
|
|
|
CMD [ "python", "main.py" ]
|