fix
This commit is contained in:
@@ -36,9 +36,9 @@ COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
|
|||||||
# Copy compiled application
|
# Copy compiled application
|
||||||
COPY --from=builder /app/dist ./dist
|
COPY --from=builder /app/dist ./dist
|
||||||
|
|
||||||
# Run as non-root user
|
# Run as non-root user (numeric UID required by Kubernetes runAsNonRoot)
|
||||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
RUN addgroup -S -g 1001 appgroup && adduser -S -u 1001 -G appgroup appuser
|
||||||
USER appuser
|
USER 1001
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ apiVersion: v2
|
|||||||
name: timetracker
|
name: timetracker
|
||||||
description: A Helm chart for the TimeTracker application
|
description: A Helm chart for the TimeTracker application
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.0
|
version: 1.0.3
|
||||||
appVersion: "1.0.0"
|
appVersion: "1.0.0"
|
||||||
dependencies: []
|
dependencies: []
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 80
|
containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|||||||
@@ -26,14 +26,6 @@ spec:
|
|||||||
name: {{ include "timetracker.fullname" $ }}-backend
|
name: {{ include "timetracker.fullname" $ }}-backend
|
||||||
port:
|
port:
|
||||||
number: {{ $.Values.backend.service.port }}
|
number: {{ $.Values.backend.service.port }}
|
||||||
# Auth routes
|
|
||||||
- path: /auth
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: {{ include "timetracker.fullname" $ }}-backend
|
|
||||||
port:
|
|
||||||
number: {{ $.Values.backend.service.port }}
|
|
||||||
# Frontend (catch-all)
|
# Frontend (catch-all)
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
|
|||||||
Reference in New Issue
Block a user