mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 01:34:57 +00:00
Optimise Dockerfile
This commit is contained in:
24
Dockerfile
24
Dockerfile
@ -1,9 +1,14 @@
|
|||||||
# Built by Akito
|
# Built by Akito
|
||||||
# npub1wprtv89px7z2ut04vvquscpmyfuzvcxttwy2csvla5lvwyj807qqz5aqle
|
# npub1wprtv89px7z2ut04vvquscpmyfuzvcxttwy2csvla5lvwyj807qqz5aqle
|
||||||
|
|
||||||
FROM alpine:3.18.3 as build
|
FROM alpine:3.18.3 AS build
|
||||||
|
|
||||||
ENV TZ=Europe/London
|
ENV TZ=Europe/London
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk --no-cache add \
|
apk --no-cache add \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
@ -13,7 +18,6 @@ RUN \
|
|||||||
pkgconfig \
|
pkgconfig \
|
||||||
libtool \
|
libtool \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
perl-yaml-libyaml \
|
|
||||||
perl-yaml \
|
perl-yaml \
|
||||||
perl-template-toolkit \
|
perl-template-toolkit \
|
||||||
perl-app-cpanminus \
|
perl-app-cpanminus \
|
||||||
@ -24,14 +28,13 @@ RUN \
|
|||||||
libsecp256k1-dev \
|
libsecp256k1-dev \
|
||||||
zstd-dev \
|
zstd-dev \
|
||||||
&& rm -rf /var/cache/apk/* \
|
&& rm -rf /var/cache/apk/* \
|
||||||
&& cpanm Regexp::Grammars
|
&& cpanm Regexp::Grammars \
|
||||||
|
&& git submodule update --init \
|
||||||
COPY . .
|
&& make setup-golpe \
|
||||||
RUN git submodule update --init
|
&& make -j4
|
||||||
RUN make setup-golpe
|
|
||||||
RUN make -j4
|
|
||||||
|
|
||||||
FROM alpine:3.18.3
|
FROM alpine:3.18.3
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@ -41,9 +44,12 @@ RUN \
|
|||||||
libsecp256k1 \
|
libsecp256k1 \
|
||||||
libb2 \
|
libb2 \
|
||||||
zstd \
|
zstd \
|
||||||
libressl3.7-libssl \
|
libressl \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
COPY --from=build /build/strfry strfry
|
COPY --from=build /build/strfry strfry
|
||||||
|
|
||||||
|
EXPOSE 7777
|
||||||
|
|
||||||
ENTRYPOINT ["/app/strfry"]
|
ENTRYPOINT ["/app/strfry"]
|
||||||
CMD ["relay"]
|
CMD ["relay"]
|
||||||
|
Reference in New Issue
Block a user