forked from madMAx43v3r/chia-plotter
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 713 Bytes
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
# Compiler image
# -------------------------------------------------------------------------------------------------
FROM alpine:3.13.5 AS compiler
WORKDIR /root
RUN apk --no-cache add \
gcc \
g++ \
build-base \
cmake \
gmp-dev \
libsodium-dev \
libsodium-static \
git
COPY . .
RUN /bin/sh ./make_devel.sh
# Runtime image
# -------------------------------------------------------------------------------------------------
FROM alpine:3.13.5 AS runtime
WORKDIR /root
RUN apk --no-cache add \
gmp-dev \
libsodium-dev
COPY --from=compiler /root/build /usr/lib/chia-plotter
RUN ln -s /usr/lib/chia-plotter/chia_plot /usr/bin/chia_plot
ENTRYPOINT ["/usr/bin/chia_plot"]