Revert to Docker image deployment

This commit is contained in:
Unchained
2026-03-06 16:19:41 +02:00
parent 0f5f009512
commit 5df87cbb9d

View File

@@ -15,64 +15,29 @@ spec:
labels: labels:
app: storefront app: storefront
spec: spec:
initContainers:
- name: git-clone
image: alpine/git
command:
- sh
- -c
- |
mkdir -p /root/.ssh
ssh-keyscan -p 222 -t rsa 100.74.155.73 > /root/.ssh/known_hosts 2>/dev/null || true
GIT_SSH_COMMAND="ssh -p 222 -o StrictHostKeyChecking=accept-new" git clone ssh://git@100.74.155.73:222/unchained/manoon-headless.git /app-src
volumeMounts:
- name: app-source
mountPath: /app-src
- name: npm-install
image: node:22-alpine
workingDir: /app-src
command:
- npm
- ci
- --legacy-peer-deps
volumeMounts:
- name: app-source
mountPath: /app-src
- name: npm-build
image: node:22-alpine
workingDir: /app-src
command:
- npm
- run
- build
volumeMounts:
- name: app-source
mountPath: /app-src
containers: containers:
- name: storefront - name: storefront
image: node:22-alpine image: manoonoils-store:latest
workingDir: /app-src imagePullPolicy: Never
command:
- npm
- start
ports: ports:
- containerPort: 3000 - containerPort: 3000
env:
- name: NODE_ENV
value: "production"
- name: PORT
value: "3000"
- name: HOSTNAME
value: "0.0.0.0"
startupProbe: startupProbe:
httpGet: httpGet:
path: / path: /
port: 3000 port: 3000
periodSeconds: 10 periodSeconds: 10
failureThreshold: 60 failureThreshold: 30
resources: resources:
requests: requests:
memory: "256Mi" memory: "128Mi"
cpu: "100m" cpu: "100m"
limits: limits:
memory: "512Mi" memory: "512Mi"
cpu: "500m" cpu: "500m"
volumeMounts:
- name: app-source
mountPath: /app-src
volumes:
- name: app-source
emptyDir: {}