fix build arg

This commit is contained in:
Wonderfall 2021-04-20 20:09:54 +02:00 committed by GitHub
parent 91287ecc06
commit 83a149e1fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@ ARG ALPINE_VERSION=3.13
# Build Mastodon stack base (Ruby + Node)
FROM ruby:${RUBY_VERSION}-alpine${ALPINE_VERSION} as node-ruby
ARG NODE_VERSION
RUN wget -q https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64-musl.tar.xz \
&& mkdir /opt/node && tar -Jxf node-v$NODE_VERSION-linux-x64-musl.tar.xz -C /opt/node --strip-components 1 \
@ -11,6 +12,7 @@ RUN wget -q https://unofficial-builds.nodejs.org/download/release/v$NODE_VERSION
# Build Hardened Malloc
ARG ALPINE_VERSION
FROM alpine:${ALPINE_VERSION} as build-malloc
ARG HARDENED_MALLOC_VERSION=7
@ -22,6 +24,7 @@ RUN apk --no-cache add build-base && cd /tmp \
# Build GNU Libiconv (needed for nokogiri)
ARG ALPINE_VERSION
FROM alpine:${ALPINE_VERSION} as build-gnulibiconv
ARG LIBICONV_VERSION=1.16