ScopeSentry/dockerfile

19 lines
636 B
Plaintext
Raw Normal View History

2024-06-12 11:15:20 +00:00
FROM python:3.7-slim
2024-06-05 13:39:34 +00:00
2024-06-12 11:15:20 +00:00
ENV TZ=Asia/Shanghai
2024-06-05 13:39:34 +00:00
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
sed -i 's/security.debian.org/mirrors.aliyun.com\/debian-security/g' /etc/apt/sources.list
2024-06-12 11:15:20 +00:00
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2024-06-05 13:39:34 +00:00
RUN apt-get update && \
2024-06-11 13:57:44 +00:00
apt-get install -y git curl ca-certificates libcurl4-openssl-dev && \
2024-06-05 13:39:34 +00:00
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/ScopeSentry/
COPY ./ScopeSentry /opt/ScopeSentry/
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --no-cache-dir
CMD ["python", "main.py"]