Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
Corrected Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cgokmen committed Mar 28, 2017
1 parent 00efeec commit 3c0e465
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
FROM python:2.7
MAINTAINER Cem Gokmen <[email protected]>

COPY app /app
WORKDIR /app
COPY . /verne
WORKDIR /verne

RUN chmod +x install_git.sh
RUN ./install_git.sh

RUN chmod +x install_rtimulib.sh
RUN ./install_rtimulib.sh

RUN install_git.sh
RUN install_rtimulib.sh
RUN pip install -r requirements.txt

VOLUME /dev/geigerCounter
VOLUME /dev/i2c-1
VOLUME /data
EXPOSE 9000

CMD twistd -n -l - -y nobelgt.tac
CMD python main.py
2 changes: 1 addition & 1 deletion install_git.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -ex #Fail if any line fails, print everything

apt-get update
apt-get install git
apt-get install git -y
4 changes: 2 additions & 2 deletions install_rtimulib.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
set -ex #Fail if any line fails, print everything

apt-get update
apt-get install python-dev
apt-get install python-dev -y

cd /tmp
git clone https://github.com/VIP-LES/RTIMULib2.git

cd RTIMULib2/Linux/python
python setup.py build
python setup.py install
python setup.py install

0 comments on commit 3c0e465

Please sign in to comment.