23 lines
456 B
Docker
23 lines
456 B
Docker
FROM python:3.10-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 \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN python -m pip install -r requirements.txt --no-cache-dir
|
|
|
|
RUN python -m pip install socksio wechatpy cryptography --no-cache-dir
|
|
|
|
EXPOSE 6185
|
|
EXPOSE 6186
|
|
|
|
CMD [ "python", "main.py" ]
|