Created
July 27, 2020 08:02
-
-
Save uni-3/c117a7ddd93df837983430f622a6b674 to your computer and use it in GitHub Desktop.
docker file for gcloud and python3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM google/cloud-sdk:latest | |
ENV PYTHONUNBUFFERED=1 | |
ENV PYTHONHASHSEED=14 | |
WORKDIR /app/src | |
# python3 | |
RUN apt-get update \ | |
&& apt-get install -y python3-pip python3-dev python3-venv python3-wheel \ | |
&& cd /usr/local/bin \ | |
&& ln -s /usr/bin/python3 python \ | |
&& pip3 install --upgrade pip | |
#RUN apt-get update \ | |
# && apt-get install -y wget \ | |
# && wget https://bootstrap.pypa.io/get-pip.py \ | |
# && python get-pip.py | |
# pymc3 | |
RUN apt-get install -y unzip curl libc-dev \ | |
&& apt-get install -y graphviz* \ | |
&& apt-get install -y lsb-release > /dev/null 2>&1 \ | |
&& pip3 install pipenv | |
RUN apt-get install -y gcc g++ | |
RUN pip3 install cython | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \ | |
&& apt-get update \ | |
&& apt-get install -y nodejs | |
#COPY Pipfile Pipfile.lock ./ | |
ENV PYTHONFAULTHANDLER=1 \ | |
PYTHONUNBUFFERED=1 \ | |
PIP_DISABLE_PIP_VERSION_CHECK=on \ | |
POETRY_VERSION=1.0.0 | |
RUN pip3 install poetry | |
COPY poetry.lock pyproject.toml /app/ | |
RUN poetry config virtualenvs.create false \ | |
&& poetry install --no-interaction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment