25 lines
533 B
Docker
25 lines
533 B
Docker
FROM python:3.11.4
|
|
|
|
ENV APP_HOME=/app
|
|
RUN mkdir $APP_HOME
|
|
WORKDIR $APP_HOME
|
|
|
|
LABEL maintainer='AKW'
|
|
LABEL bilibili='https://www.bilibili.com'
|
|
LABEL description='Development image for Real Estate Project'
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
RUN mkdir ~/.pip
|
|
RUN echo "[global]" > ~/.pip/pip.conf
|
|
RUN echo "index-url = https://pypi.tuna.tsinghua.edu.cn/simple" >> ~/.pip/pip.conf
|
|
RUN pip3 install --upgrade pip
|
|
|
|
COPY ./requirements.txt /app/requirements.txt
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
ENTRYPOINT ["sh"]
|