From 33d6c7ea4b203994b049955b945abdcd375b2f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pires?= Date: Mon, 31 Jan 2022 16:56:46 +0000 Subject: [PATCH] update timeoff version to pull request number 504 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9397fdb..44c94c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ # This is the base for our build step container FROM node:13-alpine AS base +# Environment var to set pull request version +ENV PR_NUMBER 504 + # Install dependencies RUN apk add --no-cache git @@ -10,6 +13,10 @@ RUN git clone --branch 1.3.4 https://github.com/timeoff-management/application.g WORKDIR /app/timeoff-management +# Checkout to the pull request +RUN git fetch origin pull/${PR_NUMBER}/head:pr_${PR_NUMBER} \ + && git checkout pr_${PR_NUMBER} + # Install dependencies RUN npm install mysql && npm install --unsafe-perm --production