1 Star 0 Fork 0

计量经济学/coding-for-economists

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile_poetry 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
# 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/econometric/coding-for-economists.git
git@gitee.com:econometric/coding-for-economists.git
econometric
coding-for-economists
coding-for-economists
main

搜索帮助

D67c1975 1850385 1daf7b77 1850385