-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 866 Bytes
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 866 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
34
35
FROM lnbits/lnbits:v1.4.2 AS builder
# arm64 or amd64
ARG PLATFORM
RUN apt-get update && apt-get install -y bash curl sqlite3 tini --no-install-recommends
RUN curl -sS https://webi.sh/yq | sh
FROM lnbits/lnbits:v1.4.2 AS final
COPY --from=builder /usr/bin/tini /usr/bin/tini
COPY --from=builder /usr/bin/sqlite3 /usr/bin/sqlite3
COPY --from=builder /root/.local/bin/yq /usr/local/bin/yq
RUN apt-get update && \
apt-get install -y \
xxd \
curl \
jq && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pip3 install bcrypt
ENV LNBITS_PORT=5000
ENV LNBITS_HOST=lnbits.embassy
WORKDIR /app/
RUN mkdir -p ./data
ADD .env.example ./.env
ADD actions/*.sh /usr/local/bin/
RUN chmod a+x ./.env
ADD docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
ADD check-web.sh /usr/local/bin/check-web.sh
RUN chmod a+x /usr/local/bin/*.sh