Add DockerFile and Okteto Deployment Support #4

Merged
a merged 1 commit from aishikneel/bifm:main into main 2022-07-22 17:34:23 -04:00
5 changed files with 40 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM node:18.6.0-buster-slim
ENV NODE_ENV=production
COPY package.json package-lock.json ./
RUN npm ci && mkdir /angular && mv ./node_modules ./angular
WORKDIR /angular
RUN npm install -g @angular/cli
COPY . .
ADD okteto-stack.yaml okteto-stack.yaml
COPY . .
EXPOSE 32333
CMD ["bash", "run.sh"]

2
Procfile Normal file
View file

@ -0,0 +1,2 @@
heroku ps:scale web=1
web: bash run.sh

5
heroku.yml Normal file
View file

@ -0,0 +1,5 @@
build:
docker:
web: Dockerfile
run:
web: bash run.sh

15
okteto-stack.yaml Normal file
View file

@ -0,0 +1,15 @@
services:
bifm-bypass:
public: true
build: .
environment:
NODE_ENV: production
ports:
- 32333
resources:
requests:
cpu: 500m
memory: 1000Mi
limits:
cpu: 1000m
memory: 2000Mi

1
run.sh Normal file
View file

@ -0,0 +1 @@
npm i & npm start