This repository was archived by the owner on May 16, 2019. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (35 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
43 lines (35 loc) · 1.24 KB
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
FROM ubuntu:16.04
MAINTAINER eiabea <developer@eiabea.com>
# Install required Debian packages
RUN set -ex \
&& apt-get update -q \
&& apt-get install -q -y build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev libsodium-dev autoconf automake pkg-config libtool git \
&& apt-get clean autoclean -q -y \
&& apt-get autoremove -q -y \
&& rm -rf /var/lib/apt/lists/* /var/lib/apt/lists/partial/* /tmp/* /var/tmp/*
# Install libzmq from github
RUN git clone https://github.com/zeromq/libzmq
WORKDIR /libzmq
RUN ./autogen.sh
RUN ./configure
RUN make
RUN make install
RUN ldconfig
# Install cryptography
WORKDIR /
RUN pip install cryptography
# Install Openbazaar-Server from current directory
COPY / /OpenBazaar-Server/
WORKDIR /OpenBazaar-Server/
RUN pip install -r requirements.txt -r test_requirements.txt
RUN make
# Copy entrypoint script and mark it executable
COPY ./docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Create Openbazaar user and set correct permissions
RUN adduser --disabled-password --gecos \"\" openbazaar
RUN chown -R openbazaar:openbazaar /OpenBazaar-Server
VOLUME /root/.openbazaar
VOLUME /ssl
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["python", "openbazaard.py", "start"]