Skip to content

Commit 15cebe5

Browse files
committed
Add dockerfile which will build the linux binary
1 parent 98f7eb7 commit 15cebe5

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update && apt-get upgrade
4+
RUN apt-get install -y python3-pip python3-crypto libsnappy-dev
5+
RUN apt-get install -y zip
6+
7+
RUN mkdir -p /syncrypt
8+
ADD ./syncrypt /syncrypt/syncrypt
9+
ADD ./scripts /syncrypt/scripts
10+
ADD ./dist-files /syncrypt/dist-files
11+
ADD ./setup.cfg /syncrypt/
12+
ADD ./setup.py /syncrypt/
13+
ADD ./README.md /syncrypt/
14+
15+
RUN pip3 install -e '/syncrypt[dist]'
16+
17+
WORKDIR /syncrypt
18+
19+
ADD ./syncrypt.spec /syncrypt/syncrypt.spec
20+
RUN mkdir -p /syncrypt/dist
21+
VOLUME /syncrypt/dist
22+
23+
CMD python3 setup.py dist
24+

0 commit comments

Comments
 (0)