-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
38 lines (24 loc) · 829 Bytes
/
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
# Based on Blockstream's esplora project
FROM debian:stretch-slim
# TODO: weed out unnecessary deps
RUN apt-get -yq update \
&& apt-get -yq install \
curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get -yq install nodejs
RUN mkdir -p /srv/faucet
COPY ./ /srv/faucet
WORKDIR /srv/faucet
SHELL ["/bin/bash", "-c"]
# required to run some scripts as root (needed for docker)
RUN npm config set unsafe-perm true \
&& npm install
# cleanup
RUN apt-get --auto-remove remove -y --purge manpages git \
&& apt-get clean \
&& apt-get autoclean \
&& rm -rf /usr/share/doc* /usr/share/man /usr/share/postgresql/*/man /var/lib/apt/lists/* /var/cache/* /tmp/* /root/.cache /*.deb /root/.cargo
ENV FAUCET_NAME="Signet Faucet"
COPY config.example.js config.js
EXPOSE 8123
CMD ["./index.js"]