-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend env vars at container run time
- Loading branch information
Showing
5 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
FROM node:18-alpine | ||
|
||
ARG VITE_TENANT | ||
ARG VITE_TENANT_CLIENT_ID | ||
# ARG VITE_TENANT | ||
# ARG VITE_TENANT_CLIENT_ID | ||
|
||
ENV VITE_TENANT=$VITE_TENANT | ||
ENV VITE_TENANT_CLIENT_ID=$VITE_TENANT_CLIENT_ID | ||
# ENV VITE_TENANT=$VITE_TENANT | ||
# ENV VITE_TENANT_CLIENT_ID=$VITE_TENANT_CLIENT_ID | ||
|
||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm ci | ||
|
||
COPY . . | ||
RUN npm run build | ||
|
||
RUN npm install serve | ||
|
||
# RUN npm run build | ||
|
||
EXPOSE 3000 | ||
ENTRYPOINT [ "npx", "serve", "-s" ,"dist" ] | ||
# ENTRYPOINT [ "npx", "serve", "-s" ,"dist" ] | ||
|
||
ENTRYPOINT [ "./entrypoint.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
npm run build | ||
npx serve -s dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.0.1a2 | ||
v0.0.1a3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters