代码拉取完成,页面将自动刷新
# Set base image (this also loads the Debian Linux operating system)
FROM python:3.8.12-bullseye
# Update Linux package list and install some key libraries for compiling code
RUN apt-get update && apt-get install -y gcc libffi-dev \
g++ libssl-dev openssl build-essential graphviz \
libgdal-dev libgeos-dev libproj-dev proj-data proj-bin \
nano sqlite3
RUN wget https://download.osgeo.org/proj/proj-8.1.0.tar.gz \
&& tar xzf proj-8.1.0.tar.gz \
&& cd proj-8.1.0 \
&& ./configure \
&& make \
&& make install \
&& cd ..
# Install Latex
RUN apt-get --no-install-recommends install -y texlive-latex-extra
# Ensure python points to this version of Python
RUN update-alternatives --install /usr/bin/python python /usr/local/bin/python3.8 12
RUN update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.8 12
# ensure local python is preferred over any built-in python
ENV PATH /usr/local/bin:$PATH
ARG YOUR_ENV
ENV YOUR_ENV=${YOUR_ENV} \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=1.0.0
# System deps:
RUN pip install "poetry==$POETRY_VERSION"
# set the working directory in the container
WORKDIR /app
# Copy only packages to cache them in docker layer
COPY pyproject.toml /app/
# # Install the packages
RUN poetry install --no-interaction --no-ansi
# Copy the current directory contents into the container at /app
# COPY . /app
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。