forked from Auxority/hackathon-team10
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 907 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (26 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# base image
FROM python:2.7
# Download latest listing of available packages:
RUN apt-get -y update
# Upgrade already installed packages:
RUN apt-get -y upgrade
# Install package required for sound steam
RUN apt-get -y install \
libportaudio2 \
libasound-dev
# set workdir for container
WORKDIR /app
# add naoqi OS
ADD https://community-static.aldebaran.com/resources/2.5.10/Python%20SDK/pynaoqi-python2.7-2.5.7.1-linux64.tar.gz .
RUN tar -xf pynaoqi-python2.7-2.5.7.1-linux64.tar.gz
# set environment variables for python to find naoqi api
ENV PYTHONPATH=/app/pynaoqi-python2.7-2.5.7.1-linux64/lib/python2.7/site-packages
ENV DYLD_LIBRARY_PATH=/app/pynaoqi-python2.7-2.5.7.1-linux64/lib
# add requirements to container
# COPY requirements.txt .
# copy everything to the container
COPY . .
# install requirements in container
RUN pip install -r requirements.txt
EXPOSE 9559
CMD python index.py