add CONTAINER_APP_ROOT ARG in docker file so it can be changed in run time
This commit is contained in:
parent
e448f4d76e
commit
618ca435e7
@ -1,11 +1,12 @@
|
|||||||
# build stage
|
# build stage
|
||||||
FROM node:lts-alpine as build-stage
|
FROM node:lts-alpine as build-stage
|
||||||
|
ARG CONTAINER_APP_ROOT="/app"
|
||||||
|
|
||||||
RUN npm update npm -g
|
RUN npm update npm -g
|
||||||
RUN npm config set "@fortawesome:registry" https://npm.fontawesome.com/
|
RUN npm config set "@fortawesome:registry" https://npm.fontawesome.com/
|
||||||
RUN npm config set "//npm.fontawesome.com/:_authToken" 58624E90-2685-43C6-BF0F-0BFECCE11CD2
|
RUN npm config set "//npm.fontawesome.com/:_authToken" 58624E90-2685-43C6-BF0F-0BFECCE11CD2
|
||||||
RUN npm install -g http-server
|
RUN npm install -g http-server
|
||||||
WORKDIR /app
|
WORKDIR ${CONTAINER_APP_ROOT}
|
||||||
|
|
||||||
COPY frontend/package*.json ./
|
COPY frontend/package*.json ./
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user