-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
58 lines (48 loc) · 1.18 KB
/
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
49
50
51
52
53
54
55
56
57
FROM ubuntu:20.04
ARG TAG
ARG WITH_GUI
ARG WITH_ELECTRON
ARG WITH_BUILD_TOOLS
ARG ORG=chia-network
ARG DEBIAN_FRONTEND=noninteractive
# Mainnet incoming peer connections
EXPOSE 8444/tcp
# Testnet incoming peer connections
EXPOSE 58444/tcp
# GUI
EXPOSE 3000/tcp
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
bc \
ca-certificates \
git \
lsb-release \
sudo \
tzdata \
&& if [ "$WITH_BUILD_TOOLS" = "1" ] ; then \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
python3-dev \
; fi \
&& if [ "$WITH_ELECTRON" = "1" ] ; then \
apt-get install -y --no-install-recommends \
libasound2 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libgbm1 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libnss3 \
; fi \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN git clone -b "${TAG}" "https://github.com/${ORG}/chia-blockchain.git" .
RUN sh install.sh
RUN if [ "$WITH_GUI" = "1" ] ; then \
. ./activate \
&& DEBIAN_FRONTEND=noninteractive sh install-gui.sh \
; fi
COPY docker/entrypoint.sh docker/entrypoint.sh
ENTRYPOINT ["/app/docker/entrypoint.sh"]
CMD ["chia"]