mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-14 00:46:44 +00:00
fix(Dockerfile): use alpine edge (#1241)
There will be a follow up PR to tighten the base image used with a sha256 hash
This commit is contained in:
parent
a2dca360d1
commit
e07f422854
11
Dockerfile
11
Dockerfile
@ -1,6 +1,6 @@
|
|||||||
# BUILD IMAGE --------------------------------------------------------
|
# BUILD IMAGE --------------------------------------------------------
|
||||||
|
|
||||||
FROM alpine:3.16 AS nim-build
|
FROM alpine:edge AS nim-build
|
||||||
|
|
||||||
ARG NIMFLAGS
|
ARG NIMFLAGS
|
||||||
ARG MAKE_TARGET=wakunode2
|
ARG MAKE_TARGET=wakunode2
|
||||||
@ -9,15 +9,6 @@ ARG RLN=true
|
|||||||
# Get build tools and required header files
|
# Get build tools and required header files
|
||||||
RUN apk add --no-cache bash git cargo build-base pcre-dev linux-headers
|
RUN apk add --no-cache bash git cargo build-base pcre-dev linux-headers
|
||||||
|
|
||||||
# Install newer rust than 1.62 as required by ethers-core.
|
|
||||||
ENV PKG=rust-1.64.0-x86_64-unknown-linux-musl
|
|
||||||
RUN wget -q https://static.rust-lang.org/dist/$PKG.tar.gz \
|
|
||||||
&& tar xf $PKG.tar.gz \
|
|
||||||
&& cd $PKG \
|
|
||||||
&& ./install.sh --components=rustc,cargo,rust-std-x86_64-unknown-linux-musl \
|
|
||||||
&& cd - \
|
|
||||||
&& rm -r $PKG $PKG.tar.gz
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user