Skip to content

Instantly share code, notes, and snippets.

@sebastianst
Created August 15, 2018 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastianst/a16695643a7bd39ff08629d1d76c92ff to your computer and use it in GitHub Desktop.
Save sebastianst/a16695643a7bd39ff08629d1d76c92ff to your computer and use it in GitHub Desktop.
Dockerfile for running the cv-tricks image classifier tensorflow tutorial
# Dockerfile for running the cv-tricks image classifier tensorflow tutorial from
# http://cv-tricks.com/tensorflow-tutorial/training-convolutional-neural-network-for-image-classification/
FROM tensorflow/tensorflow:latest-gpu-py3
# or just tensorflow/tensorflow:latest-py3 for CPU version
LABEL maintainer="Sebastian Stammler <base64 -d<<<aWFtQGRlY2VudHIuYWwK>"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libsm6 \
libxrender1 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
RUN pip --no-cache-dir install opencv-python
COPY cv-tricks.com/Tensorflow-tutorials/tutorial-2-image-classifier /app
WORKDIR /app
CMD python train.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment