Skip to content

Instantly share code, notes, and snippets.

@marcominerva
Created October 16, 2018 13:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcominerva/74ab33bef3660bb9a0f6db2f6cebd97b to your computer and use it in GitHub Desktop.
Save marcominerva/74ab33bef3660bb9a0f6db2f6cebd97b to your computer and use it in GitHub Desktop.
Modified Dockerfile and app/requirements.txt files to make Custom Vision Linux Container work on Raspberry Pi 2/3
FROM python:3.5
ADD app /app
RUN pip install --upgrade pip
RUN pip install https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.5.0/tensorflow-1.5.0-cp35-none-linux_armv7l.whl
RUN pip install -r /app/requirements.txt
# Expose the port
EXPOSE 80
# Set the working directory
WORKDIR /app
# Run the flask server for the endpoints
CMD python app.py
pillow==5.0.0
numpy==1.14.1
flask==0.12.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment