forked from cryptonotefoundation/cryptonote
-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
45 lines (32 loc) · 1.08 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
FROM ubuntu:16.04 as build
ARG RELEASE_TYPE=release-static
RUN set -ex && \
apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends install \
ca-certificates libboost-all-dev cmake g++ git libssl-dev make pkg-config libunbound-dev
WORKDIR /lethean
COPY . .
RUN make -j$(nproc) ${RELEASE_TYPE}
RUN make ci-release
FROM debian:11.6-slim as container
COPY --from=build /lethean/build/packaged/lethean* /usr/local/bin/
RUN apt-get update && apt-get install -y ca-certificates
RUN adduser --system --group --disabled-password --home /home/lethean --shell /bin/sh lethean && \
mkdir -p /wallet /home/lethean/.letheand && \
chown -R lethean:lethean /home/lethean/.letheand && \
chown -R lethean:lethean /wallet
# Contains the blockchain
VOLUME /home/lethean/.letheand
VOLUME /wallet
COPY utils/docker/entrypoint.sh /entrypoint.sh
RUN chmod a+rx /entrypoint.sh
ENV LOG_LEVEL 0
ENV SEED_NODE seed.lethean.io
EXPOSE 48782
EXPOSE 48772
EXPOSE 38772
EXPOSE 38782
USER lethean
WORKDIR /home/lethean
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "letheand" ]