Add DockerFile and Okteto Deployment Support #4
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
5
heroku.yml
Normal file
5
heroku.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
web: Dockerfile
|
||||||
|
run:
|
||||||
|
web: bash run.sh
|
15
okteto-stack.yaml
Normal file
15
okteto-stack.yaml
Normal 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
|
Reference in a new issue