diff --git a/Dockerfile b/Dockerfile index c77a7b7..1f6f30a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ WORKDIR /app COPY package.json . RUN npm install COPY . . +ARG VITE_HOTEL_NAME="Number Four at Stow" +ENV VITE_HOTEL_NAME=$VITE_HOTEL_NAME RUN npm run build FROM nginx:alpine diff --git a/docker-compose.yml b/docker-compose.yml index dd5b443..bde53ee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,9 @@ services: portal: - build: . + build: + context: . + args: + VITE_HOTEL_NAME: ${VITE_HOTEL_NAME:-Number Four at Stow} security_opt: - apparmor=unconfined ports: diff --git a/index.html b/index.html index 556fb91..7c9538d 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ -
- Hotel Number Four + {import.meta.env.VITE_HOTEL_NAME}