File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM debian:wheezy
22RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
3+ RUN useradd -d /home/user -m -s /bin/bash user
34WORKDIR /code/
45
56ADD requirements.txt /code/
@@ -10,3 +11,5 @@ RUN pip install -r requirements-dev.txt
1011
1112ADD . /code/
1213RUN python setup.py install
14+
15+ RUN chown -R user /code/
Original file line number Diff line number Diff line change 33mkdir -p ` pwd` /dist
44chmod 777 ` pwd` /dist
55docker build -t fig .
6- docker run -v ` pwd` /dist:/code/dist fig pyinstaller -F bin/fig
7- docker run -v ` pwd` /dist:/code/dist fig dist/fig --version
6+ docker run -u user - v ` pwd` /dist:/code/dist fig pyinstaller -F bin/fig
7+ docker run -u user - v ` pwd` /dist:/code/dist fig dist/fig --version
Original file line number Diff line number Diff line change 77 - script :
88 name : run tests
99 code : script/test
10+ - script :
11+ name : build binary
12+ code : script/build-linux
You can’t perform that action at this time.
0 commit comments