You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
438 B
Docker
21 lines
438 B
Docker
10 months ago
|
FROM python:3.10
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY . /app
|
||
|
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
EXPOSE 8000
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get install -y --no-install-recommends \
|
||
|
libgl1-mesa-glx \
|
||
|
tzdata && \
|
||
|
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||
|
dpkg-reconfigure -f noninteractive tzdata && \
|
||
|
apt-get clean && \
|
||
|
rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
CMD ["python", "app.py"]
|