Skip to content

Commit

Permalink
Add platform and a deployment manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaganti committed Apr 21, 2024
1 parent 08b3f0e commit 5e0eca0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
FROM python:3 AS build-env
FROM --platform=linux/amd64 python:3 AS build-env
COPY . /app
WORKDIR /app

Expand Down
17 changes: 17 additions & 0 deletions backend/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sampan-backend
spec:
replicas: 3
selector:
matchLabels:
app: sampan-backend
template:
metadata:
labels:
app: sampan-backend
spec:
containers:
- name: sampan-backend
image: ghcr.io/pchaganti/sampan-backend:main

0 comments on commit 5e0eca0

Please sign in to comment.