mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
added ability to check out alternate branch
This commit is contained in:
parent
e1f116bf06
commit
9cfa70084b
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue