Update PORT variable to use process.env.PORT or 5053
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
25
.drone.yml
Normal file
25
.drone.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: build-and-deploy
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:latest
|
||||||
|
environment:
|
||||||
|
USERNAME:
|
||||||
|
from_secret: git_username
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: git_password
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- node -v
|
||||||
|
|
||||||
|
- name: create-docker-image-insider
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
registry: git.dinawo.fr
|
||||||
|
repo: git.dinawo.fr/drone/cdn-app-insider
|
||||||
|
tags: latest
|
||||||
|
username:
|
||||||
|
from_secret: git_username
|
||||||
|
password:
|
||||||
|
from_secret: git_password
|
||||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
FROM node:14
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
EXPOSE 5053
|
||||||
|
|
||||||
|
CMD [ "npm", "start" ]
|
||||||
Reference in New Issue
Block a user