From 4f0ce3c380f6f72486ca56690a2437435e515be8 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Wed, 23 Sep 2020 16:07:28 +0200 Subject: [PATCH] Use ENV key=value Signed-off-by: Stefan Scherer --- resources/templates/node/Dockerfile.template | 2 +- resources/templates/python/Dockerfile.template | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/templates/node/Dockerfile.template b/resources/templates/node/Dockerfile.template index e03a7418bc..77b56c5d34 100644 --- a/resources/templates/node/Dockerfile.template +++ b/resources/templates/node/Dockerfile.template @@ -1,5 +1,5 @@ FROM node:12.18-alpine -ENV NODE_ENV production +ENV NODE_ENV=production WORKDIR /usr/src/app COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"] RUN npm install --production --silent && mv node_modules ../ diff --git a/resources/templates/python/Dockerfile.template b/resources/templates/python/Dockerfile.template index ece195bd18..d428705419 100644 --- a/resources/templates/python/Dockerfile.template +++ b/resources/templates/python/Dockerfile.template @@ -12,10 +12,10 @@ EXPOSE {{ . }} {{/if}} # Keeps Python from generating .pyc files in the container -ENV PYTHONDONTWRITEBYTECODE 1 +ENV PYTHONDONTWRITEBYTECODE=1 # Turns off buffering for easier container logging -ENV PYTHONUNBUFFERED 1 +ENV PYTHONUNBUFFERED=1 # Install pip requirements ADD requirements.txt .