-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #8944.
- Loading branch information
Showing
65 changed files
with
7,148 additions
and
18,492 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
REACT_APP_VERSION=$npm_package_version | ||
VITE_APP_VERSION=$npm_package_version |
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ FROM node:23.6.1-alpine3.20 AS compile-image | |
WORKDIR /home/frontend | ||
COPY public /home/frontend/public | ||
COPY package*.json /home/frontend | ||
COPY index.html /home/frontend | ||
COPY *.ts /home/frontend | ||
COPY src /home/frontend/src | ||
COPY .env /home/frontend | ||
RUN npm install --ignore-scripts && \ | ||
|
@@ -15,7 +17,7 @@ LABEL description="Quality-time frontend" | |
|
||
WORKDIR /home/frontend | ||
COPY healthcheck.js /home/frontend | ||
COPY --from=compile-image /home/frontend/build /home/frontend/build | ||
COPY --from=compile-image /home/frontend/dist /home/frontend/dist | ||
RUN npm install --ignore-scripts -g [email protected] && \ | ||
adduser frontend --disabled-password | ||
USER frontend | ||
|
@@ -24,4 +26,4 @@ HEALTHCHECK CMD ["node", "/home/frontend/healthcheck.js"] | |
|
||
# Use the Shell form of CMD instead of the Exec form so the environment variable is substituted | ||
# hadolint ignore=DL3025 | ||
CMD serve --listen ${FRONTEND_PORT:-5000} --no-request-logging --single build | ||
CMD serve --listen ${FRONTEND_PORT:-5000} --no-request-logging --single dist |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="shortcut icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="manifest" href="/manifest.json" /> | ||
<title>Quality-time</title> | ||
</head> | ||
<body id="root"> | ||
<noscript> You need to enable JavaScript to run this app. </noscript> | ||
<script type="module" src="/src/index.jsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.