Skip to content
Open
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
2 changes: 1 addition & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
- name: env
mountPath: "/usr/share/nginx/html/env.js"
subPath: "env.js"
- mountPath: /var/cache/nginx/client_temp
- mountPath: /var/cache/nginx
name: tmpfs
- mountPath: /var/run
name: tmpfs2
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "api-platform.fullname" . }}
Expand Down
32 changes: 32 additions & 0 deletions pwa/Dockerfile.openshift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM node:18 AS builder
# Set working directory
WORKDIR /app

COPY package.json package-lock.json ./

# Copy all files from current directory to working dir in image
# install node modules and build assets
RUN npm install

COPY . .

RUN npm run build

FROM nginx
COPY --from=builder /app/public /usr/share/nginx/html

COPY docker/nginx.conf /etc/nginx/nginx.conf
COPY docker/default.conf /etc/nginx/conf.d/default.conf

RUN chown -R 1001:0 /usr/share/nginx && chmod -R ug+rwX /usr/share/nginx && \
chown -R 1001:0 /var/cache/nginx && \
chmod -R ug+rwX /var/cache/nginx && \
chown -R 1001:0 /var/log/nginx && \
chmod -R ug+rwX /var/log/nginx && \
chown -R 1001:0 /etc/nginx/conf.d && \
chmod -R ug+rwX /etc/nginx/conf.d
RUN touch /var/run/nginx.pid && \
chown -R 1001:0 /var/run/nginx.pid && chmod -R ug+rwX /var/run

USER 1001
EXPOSE 8080