generated from openBackhaul/ApplicationOwnerRepositoryTemplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdockerfile
More file actions
26 lines (19 loc) · 647 Bytes
/
dockerfile
File metadata and controls
26 lines (19 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM node:16
# Create app directory
WORKDIR /home/openbackhaul/NotificationProxy
# Install and app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
COPY package*.json ./
# Only copy package.json to avoid copying package-lock.json with local registry paths
#COPY package.json ./
ENV CONTROLLER_USER=${CONTROLLER_USER}
ENV CONTROLLER_PASSWORD=${CONTROLLER_PASSWORD}
ENV DEVICE_USER=${DEVICE_USER}
ENV DEVICE_PASSWORD=${DEVICE_PASSWORD}
# install application by NPM
RUN npm ci --only=production
# Bundle app source
COPY . .
EXPOSE 4025
#Command to start the application
CMD [ "node", "index.js" ]