test2 / Dockerfile
pannman
Add PythonPath
c90bbe9
raw
history blame contribute delete
467 Bytes
FROM python:3.10
ENV POETRY_HOME=/opt/poetry
ENV PYTHONPATH=/root/work:/root/work/src
RUN apt update -qq && \
apt install -y build-essential \
git \
curl \
wget \
vim
RUN curl -sSL https://install.python-poetry.org | python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
WORKDIR /root
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]