File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change
1
+ ARG TARGETOS
2
+ ARG TARGETARCH
3
+
1
4
ARG BASE_DISTRO="debian:bookworm-slim"
2
5
3
6
FROM ${BASE_DISTRO} AS base-downloader
@@ -63,6 +66,7 @@ RUN apt-get update -qq && \
63
66
gnupg \
64
67
wget \
65
68
python3 \
69
+ python3-dev \
66
70
autoconf \
67
71
automake \
68
72
libicu-dev \
@@ -195,12 +199,20 @@ RUN mkdir -p .cargo && tee .cargo/config.toml <<-EOF
195
199
linker = "${target_host}-gcc"
196
200
EOF
197
201
202
+ ARG POETRY_VIRTUALENVS_CREATE=false
203
+
198
204
RUN poetry lock && \
199
205
poetry install --no-root --no-interaction --no-ansi
200
206
201
207
RUN ./configure --prefix=/tmp/lightning_install --enable-static
202
208
RUN poetry run make install
203
209
210
+ RUN for f in /tmp/lightning_install/bin/*; do \
211
+ if file "$f" | grep -q ELF; then \
212
+ ${STRIP} --strip-unneeded "$f" ; \
213
+ fi; \
214
+ done
215
+
204
216
FROM ${BASE_DISTRO} AS final
205
217
206
218
RUN apt-get update -qq && \
@@ -221,12 +233,6 @@ COPY --from=downloader /opt/litecoin/bin/ /usr/bin/
221
233
COPY --from=builder /tmp/lightning_install/ /usr/local/
222
234
COPY --from=builder /tmp/postgres_install/lib/ /usr/lib/
223
235
224
- RUN for f in /usr/bin/*; do \
225
- if file "$f" | grep -q ELF; then \
226
- strip --strip-unneeded "$f" ; \
227
- fi; \
228
- done
229
-
230
236
COPY tools/docker-entrypoint.sh /entrypoint.sh
231
237
232
238
# TODO: user creation. user permissions on volume.
You can’t perform that action at this time.
0 commit comments