-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
39 lines (26 loc) · 1.07 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
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y curl \
wget \
unzip \
procps \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY /phoenix-server-wallet/package*.json ./
RUN npm install
COPY /phoenix-server-wallet/ .
RUN touch .env
RUN wget https://github.com/ACINQ/phoenixd/releases/download/v0.4.2/phoenix-0.4.2-linux-x64.zip \
&& unzip -j phoenix-0.4.2-linux-x64.zip -d /usr/local/bin/ \
&& chmod +x /usr/local/bin/phoenixd \
&& rm phoenix-0.4.2-linux-x64.zip
COPY ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
RUN chmod 755 /usr/local/bin/docker_entrypoint.sh
ADD ./check-phoenixd.sh /usr/local/bin/check-phoenixd.sh
RUN chmod +x /usr/local/bin/check-phoenixd.sh
ADD ./check-ui.sh /usr/local/bin/check-ui.sh
RUN chmod +x /usr/local/bin/check-ui.sh
EXPOSE 3000
# ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"]