Skip to content

Instantly share code, notes, and snippets.

@milinddeore
Created May 4, 2019 11:23
Show Gist options
  • Save milinddeore/ec24a09d98bb9b1ddc815a7b11082460 to your computer and use it in GitHub Desktop.
Save milinddeore/ec24a09d98bb9b1ddc815a7b11082460 to your computer and use it in GitHub Desktop.
FastAI version 0.7.0 + ipython + OpenCV
# Copyright (c) Columbus Development Team.
# Distributed under the terms of the Modified BSD License.
FROM ubuntu
MAINTAINER Milind Deore <tomdeore@gmail.com>
# Update and Upgrade the packages
RUN apt-get -y update -qq && \
apt-get -y upgrade
# Install Essentials
RUN apt-get -y install wget \
unzip \
build-essential \
checkinstall \
yasm \
gfortran \
cmake \
git \
pkg-config \
libjpeg8-dev
# Update and Upgrade the packages
RUN apt-get -y update -qq && \
apt-get -y upgrade
# Install Essentials
RUN apt-get -y install libavcodec-dev \
libavformat-dev \
libswscale-dev \
libdc1394-22-dev \
libxine2-dev \
libv4l-dev \
libatlas-base-dev \
libfaac-dev \
libmp3lame-dev \
libtheora-dev \
libvorbis-dev \
libxvidcore-dev \
libopencore-amrnb-dev \
libopencore-amrwb-dev \
x264 \
v4l-utils \
python-dev \
python-pip \
python3-dev \
python3-pip \
libsm6 \
libxext6 \
ipython
# Install FastAI and Torch
RUN pip install --upgrade pip &&\
pip3 install fastai==0.7.0 torchtext==0.2.3 opencv-python jupyter
EXPOSE 8888
RUN mkdir -p /notebooks/fastai/
WORKDIR /notebooks/fastai/
CMD jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment