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
8 changes: 8 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Fill in this Dockerfile to build your Docker image
FROM node:8.7
COPY package.json package-lock.json ./
WORKDIR /
RUN npm install
COPY . .
EXPOSE 8080
CMD ["npm", "start"]
16 changes: 16 additions & 0 deletions backend/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: backendgenius # You'll need to manually type this out. The environment variable won't work
spec:
replicas: 2
template:
metadata:
labels: # labels to select/identify the deployment
app: backendgenius
spec: # pod spec
containers:
- name: backendgenius
image: gcr.io/backendgenius/lambda-backend-devops:v1 # image we pushed
ports:
- containerPort: 8080