-
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.
Merge pull request #99 from gipplab/https-in-docker
Use nginx in docker again and keys of host system. This way host does…
- Loading branch information
Showing
2 changed files
with
20 additions
and
9 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,9 +1,14 @@ | ||
FROM node:18 | ||
FROM node:18 as builder | ||
|
||
RUN mkdir /cs-insights-frontend | ||
WORKDIR /cs-insights-frontend | ||
COPY ./ /cs-insights-frontend | ||
|
||
WORKDIR /cs-insights-frontend | ||
RUN npm install | ||
RUN npm run build --omit=dev | ||
RUN npm run build --omit=dev | ||
|
||
FROM nginx:latest | ||
|
||
COPY --from=builder /cs-insights-frontend/build /usr/share/nginx/html/ | ||
COPY --from=builder /cs-insights-frontend/nginx.conf /etc/nginx/conf.d/default.conf |
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