forked from OpenBazaar/openbazaar-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
executable file
·40 lines (31 loc) · 1.39 KB
/
Dockerfile.dev
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
FROM golang:1.10
VOLUME /var/lib/openbazaar
RUN wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz && \
tar xvf Python-3.6.0.tgz && \
cd Python-3.6.0 && \
./configure --enable-optimizations && \
make -j8
RUN apt-get update && apt-get install -yq zlib1g-dev libssl-dev unzip
RUN cd Python-3.6.0 && \
make altinstall && \
ln -s /usr/local/bin/python3.6 /usr/local/bin/python3
COPY ./qa/requirements.txt ./requirements.txt
RUN pip3.6 install --upgrade pip && \
pip3.6 install -r requirements.txt && \
wget https://bitcoin.org/bin/bitcoin-core-0.16.3/bitcoin-0.16.3-x86_64-linux-gnu.tar.gz && \
tar -xvzf bitcoin-0.16.3-x86_64-linux-gnu.tar.gz -C /opt
RUN wget https://github.com/google/protobuf/releases/download/v3.6.0/protoc-3.6.0-linux-x86_64.zip && \
unzip ./protoc-3.6.0-linux-x86_64.zip -x readme.txt && \
mv ./include/* /usr/local/include/ && \
mv ./bin/protoc /usr/local/bin/ && \
rm -rf ./include ./bin
RUN go get -u github.com/gogo/protobuf/proto \
github.com/golang/protobuf/protoc-gen-go \
github.com/icrowley/fake \
github.com/derekparker/delve/cmd/dlv
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10
WORKDIR /go/src/github.com/OpenBazaar/openbazaar-go
RUN useradd -ms /bin/bash ob_user
USER ob_user
COPY . .
ENTRYPOINT ["/bin/bash"]