added ability to check out alternate branch

This commit is contained in:
Christopher Bisset 2022-08-11 11:25:16 +10:00
parent e1f116bf06
commit 9cfa70084b
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,7 @@
# arguments
ARG VERSION="master"
# Branch to check out
ARG CHECKOUT_BRANCH="master"
FROM node:current-alpine AS build
@ -35,8 +37,8 @@ ENV PROJECT_NAME="headscale-ui"
# URL for the github/git location
ENV PROJECT_URL="https://github.com/gurucomputing/headscale-ui"
# Ports that caddy will run on
ENV HTTPS_PORT="443"
ENV HTTP_PORT="80"
ENV HTTPS_PORT="443"
# Production Web Server port. Runs a self signed SSL certificate
EXPOSE 443

View file

@ -8,9 +8,10 @@ apk add --no-cache jq git
#clone the project
git clone ${PROJECT_URL} ${PROJECT_NAME}
cd ${PROJECT_NAME}
git checkout ${CHECKOUT_BRANCH}
# install the project
cd ${PROJECT_NAME}
npm install
# inject the version number