From af769aeee1d3807bc4177470542d9299532355a5 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Wed, 8 Jan 2020 15:58:59 +0100 Subject: [PATCH] do not use hyphens in build arg --- Makefile | 2 +- build/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d1512c5..b3069c0 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ ROBOTS_FILE ?= robots.txt.staging SITEURL ?= http://localhost:8000 build: - @docker build --build-arg siteurl=${SITEURL} --build-arg offen-account-id=${OFFEN_ACCOUNT_ID} -t offen/website -f build/Dockerfile . + @docker build --build-arg siteurl=${SITEURL} --build-arg offenaccountid=${OFFEN_ACCOUNT_ID} -t offen/website -f build/Dockerfile . @rm -rf output && mkdir output @docker create --entrypoint=bash -it --name assets offen/website @docker cp assets:/code/homepage/output/. ./output/ diff --git a/build/Dockerfile b/build/Dockerfile index 5bd3952..c82a961 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -5,8 +5,8 @@ ENV NODE_PATH="/usr/lib/node_modules" ARG siteurl ENV SITEURL=$siteurl -ARG offen-account-id -ENV OFFEN_ACCOUNT_ID=$offen-account-id +ARG offenaccountid +ENV OFFEN_ACCOUNT_ID=$offenaccountid RUN npm install -g postcss-cli@^6.1.3 autoprefixer@^9.7.0 svgo@^1.3.0 RUN apt-get update \