Cloud SDK使う場合のDockerファイル

in side7python •  4 years ago 

純正のイメージはあまりよくなさそうなので

FROM python:2

ENV PATH=$PATH:/root/google-cloud-sdk/bin: \
    PYTHONPATH=$PYTHONPATH:/usr/src/myProjPath
EXPOSE 5000 8000

RUN curl https://sdk.cloud.google.com > install.sh && \
    bash install.sh --disable-prompts && \
    gcloud components install app-engine-python && \
    gcloud components install app-engine-python-extras && \
    pip install -U pip && \
    pip install google-cloud-storage && \
    pip install boto3 && \
    pip install tqdm && \
    pip install Flask && \
    pip install flask_paginate
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!