From 56d4b441bd738679126ca998ecf1b55cc4fe14ad Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 18 Sep 2021 02:05:00 +0100 Subject: [PATCH] :alembic: Experiement - Try get node-gyp working --- docker/Dockerfile-multi-arch | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile-multi-arch b/docker/Dockerfile-multi-arch index b51f847d..c4be2239 100644 --- a/docker/Dockerfile-multi-arch +++ b/docker/Dockerfile-multi-arch @@ -6,13 +6,16 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64} # Install additional tools needed on arm64 and armv7 RUN \ case "${TARGETPLATFORM}" in \ - 'linux/arm64') apk add --no-cache python make g++ ;; \ - 'linux/arm/v7') apk add --no-cache python make g++ ;; \ + 'linux/arm64') apk add --no-cache python make g++ ;; \ + 'linux/arm/v7') apk add --no-cache python make g++ ;; \ esac # Create and set the working directory WORKDIR /app +# Workaround for node-gyp +RUN apk add --update python make g++ && rm -rf /var/cache/apk/* + COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile --network-timeout 1000000 @@ -27,8 +30,8 @@ FROM node:14.17.5-alpine # Define some ENV Vars ENV PORT=80 \ - DIRECTORY=/app \ - IS_DOCKER=true + DIRECTORY=/app \ + IS_DOCKER=true # Create and set the working directory WORKDIR ${DIRECTORY}