Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ COPY --from=build /app/dist ./dist
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:3000/api

# Nonroot user, limit heap size to 50 MB
# Nonroot user, limit heap size to 150 MB
USER nonroot
CMD ["--max-old-space-size=50", "/app/dist/main"]
CMD ["--max-old-space-size=150", "/app/dist/main"]
4 changes: 2 additions & 2 deletions charts/app/templates/backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
resources:
requests:
cpu: 50m
memory: 75Mi
memory: 200Mi
containers:
- name: {{ include "backend.fullname" . }}
{{- if .Values.backend.securityContext }}
Expand Down Expand Up @@ -100,7 +100,7 @@ spec:
resources: # this is optional
requests:
cpu: 50m
memory: 75Mi
memory: 200Mi
{{- with .Values.backend.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
Loading