-
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.
- Loading branch information
1 parent
a12cb65
commit c392c30
Showing
3 changed files
with
42 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:23.1.0 | ||
|
||
# make the 'app' folder the current working directory | ||
WORKDIR /frontend | ||
|
||
# copy both 'package.json' and 'package-lock.json' (if available) | ||
COPY /frontend/package*.json ./ | ||
|
||
# install project dependencies | ||
RUN npm install | ||
|
||
# copy project files and folders to the current working directory (i.e. 'app' folder) | ||
COPY /frontend/. . | ||
|
||
# build app for production with minification | ||
RUN npm run build | ||
|
||
EXPOSE 5173 | ||
CMD [ "npm", "run", "dev", "--", "--host" ] |
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,21 @@ | ||
FROM node:23.1.0 | ||
|
||
# make the 'app' folder the current working directory | ||
WORKDIR /frontend | ||
|
||
# copy both 'package.json' and 'package-lock.json' (if available) | ||
COPY /frontend/package*.json ./ | ||
|
||
# install project dependencies | ||
RUN npm install | ||
|
||
# copy project files and folders to the current working directory (i.e. 'app' folder) | ||
COPY /frontend/. . | ||
|
||
# build app for production with minification | ||
RUN npm run build | ||
|
||
FROM cgr.dev/chainguard/nginx@sha256:9cbce3d5ee2bf696232931119919c2db19e7272cddb0fae0dc0602e78281b688 | ||
EXPOSE 8081 | ||
COPY /frontend/dist /var/lib/nginx/html | ||
COPY nginx.conf /etc/nginx/conf.d/ris-adm-vwv.conf |