-
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
582684e
commit c43f98d
Showing
8 changed files
with
113 additions
and
10 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 |
---|---|---|
|
@@ -64,4 +64,4 @@ jobs: | |
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: dist/webapp/ | ||
path: webapp/dist/webapp/ |
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,49 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
# Only exists if Bazel was run | ||
/bazel-out | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# profiling files | ||
chrome-profiler-events*.json | ||
speed-measure-plugin*.json | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
.history/* | ||
|
||
# misc | ||
/.angular/cache | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
src/environments/*.tmp | ||
*.iml |
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,23 @@ | ||
FROM node:20.11.0-alpine as build | ||
|
||
WORKDIR /build | ||
COPY *.json *.js ./ | ||
RUN npm clean-install | ||
COPY src/ ./src | ||
RUN npm run build | ||
|
||
FROM ghcr.io/nginxinc/nginx-unprivileged:1.25.3-alpine-slim | ||
|
||
ADD --chmod=755 https://github.com/kyubisation/angular-server-side-configuration/releases/download/v17.0.2/ngssc_64bit /usr/sbin/ngssc | ||
|
||
# Add ngssc script | ||
ADD --chmod=755 docker/99-ngssc.sh /docker-entrypoint.d/ | ||
|
||
# Add nginx configuration | ||
ADD docker/nginx-angular.conf /etc/nginx/conf.d/default.conf | ||
|
||
# copy built application from build stage | ||
COPY --from=build --chown=nginx:nginx --chmod=755 /build/dist/webapp /usr/share/nginx/html | ||
|
||
# Validate the nginx configuration | ||
RUN nginx -t |
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,5 @@ | ||
services: | ||
angular: | ||
build: . | ||
ports: | ||
- "4200:4200" |
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 | ||
|
||
ngssc insert /usr/share/nginx/html/ |
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,23 @@ | ||
server { | ||
listen 4200; | ||
server_name localhost; | ||
|
||
root /usr/share/nginx/html; | ||
|
||
error_page 500 502 503 504 /50x.html; | ||
|
||
location ~* \.(?:.css|.js)$ { | ||
expires 1y; | ||
} | ||
|
||
location = / { | ||
index /index.html; | ||
} | ||
|
||
location ~ /(?!nginx_nr_agent_stub_status)([\w-]+) { | ||
expires -1; | ||
add_header Pragma "no-cache"; | ||
add_header Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"; | ||
try_files $uri $uri/ /$1/index.html =404; | ||
} | ||
} |
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