Add Features

* Add DockerFile Deployment
* Add Support for Deployment to Okteto
pull/4/head
Miss Emily 11 months ago
parent 08de221d32
commit cb5018c1c1
No known key found for this signature in database
GPG Key ID: 223F6301467BCC33

@ -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"]

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

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

@ -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

@ -0,0 +1 @@
npm i & npm start
Loading…
Cancel
Save