Skip to content

Commit

Permalink
update timeoff version to pull request number 504
Browse files Browse the repository at this point in the history
  • Loading branch information
João Pires committed Jan 31, 2022
1 parent 0774242 commit 33d6c7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down

0 comments on commit 33d6c7e

Please sign in to comment.