Skip to content

Commit

Permalink
fix(components): Update components/local/base/Dockerfile to use Pytho…
Browse files Browse the repository at this point in the history
  • Loading branch information
chensun authored Jan 28, 2021
1 parent 76246f4 commit d14f64e
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions components/local/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM python:3.7

FROM ubuntu:16.04

RUN apt-get update -y && apt-get install --no-install-recommends -y -q ca-certificates python-dev python-setuptools wget unzip

RUN easy_install pip

RUN pip install google-api-python-client==1.6.2
RUN pip install pandas==0.18.1
RUN pip install scikit-learn==0.19.1
RUN pip install scipy==1.0.0
RUN pip install tensorflow==1.5

RUN wget -nv https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip && \
unzip -qq google-cloud-sdk.zip -d tools && \
rm google-cloud-sdk.zip && \
tools/google-cloud-sdk/install.sh --usage-reporting=false \
--path-update=false --bash-completion=false \
--disable-installation-options && \
tools/google-cloud-sdk/bin/gcloud -q components update \
gcloud core gsutil && \
tools/google-cloud-sdk/bin/gcloud config set component_manager/disable_update_check true && \
touch /tools/google-cloud-sdk/lib/third_party/google.py
RUN pip install --no-cache-dir pandas==0.24.2
RUN pip install --no-cache-dir scikit-learn==0.21.2
RUN pip install --no-cache-dir scipy==1.4.1
RUN pip install --no-cache-dir tensorflow==2.2.0

ADD build /ml

ENV PATH $PATH:/tools/node/bin:/tools/google-cloud-sdk/bin

0 comments on commit d14f64e

Please sign in to comment.