-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.x86
More file actions
24 lines (14 loc) · 838 Bytes
/
Dockerfile.x86
File metadata and controls
24 lines (14 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM docker-hub.pigeon-server.cn/library/python:slim-bullseye
LABEL authors="fsj"
EXPOSE 8000
USER root
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian stable main contrib non-free" > /etc/apt/sources.list && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian stable-updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stable-security main contrib non-free" >> /etc/apt/sources.list
RUN apt update
RUN apt install -y gcc libpq-dev libmagic1
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
COPY . /app
WORKDIR /app
RUN pip install --no-cache-dir -r ./requirements.txt --index-url https://pypi.tuna.tsinghua.edu.cn/simple --extra-index-url https://pypi.org/simple
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000", "--noreload"]