-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (40 loc) · 923 Bytes
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:latest
RUN apt-get update && apt-get -y install \
build-essential \
cmake \
git \
libboost-all-dev \
python2.7 \
python-pip \
python-dev \
swig \
vim-nox
RUN pip install --upgrade pip
RUN pip install --user --upgrade \
ipython \
pytest \
virtualenvwrapper
RUN echo "export PATH=$PATH:$HOME/.local/bin" >> ~/.bashrc
RUN echo "source $HOME/.local/bin/virtualenvwrapper.sh" >> ~/.bashrc
ENV EDITOR vim
# Build
RUN git clone --recursive http://gitub.com/joeleong/pypokerstove
WORKDIR /pypokerstove
RUN git apply patches/*.patch
RUN mkdir pokerstove/build
WORKDIR /pypokerstove/pokerstove/build
RUN cmake ../src
RUN make
WORKDIR /pypokerstove
RUN mkdir build
WORKDIR /pypokerstove/build
RUN cmake ..
RUN make
RUN pip install -e .
# Test
WORKDIR /pypokerstove
RUN python -m pytest test
WORKDIR /pypokerstove/pokerstove/build/bin
RUN ./*tests
WORKDIR /pypokerstove
CMD bash