deployment stuff

This commit is contained in:
2026-02-21 12:01:36 -08:00
parent fb1eea6d08
commit 531c6258e6
9 changed files with 174 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
node_modules/
dist/
.angular/
+14
View File
@@ -0,0 +1,14 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . ./
RUN npm run build
FROM nginx:alpine AS runtime
COPY --from=build /app/dist/winstudentgoaltracker/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8006
+11
View File
@@ -0,0 +1,11 @@
server {
listen 8006;
root /usr/share/nginx/html;
index index.html;
# Angular SPA fallback routing
location / {
try_files $uri $uri/ /index.html;
}
}