Skip to content

Commit cc2a237

Browse files
committed
skip dev packages
1 parent 3cae67c commit cc2a237

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ EXPOSE 80
44
EXPOSE 5858
55
WORKDIR /data
66
COPY docker-package.json ./package.json
7-
RUN npm install
7+
RUN npm install --only=prod
8+
# RUN npm install --production
89
# RUN npm install --force
910
COPY dist ./
1011

OpenFlowNodeRED/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ EXPOSE 80
33
EXPOSE 5859
44
WORKDIR /data
55
COPY docker-package.json ./package.json
6-
RUN npm install
6+
RUN npm install --only=prod
7+
# RUN npm install
78
COPY dist ./
89

910
ENTRYPOINT ["/usr/local/bin/node", "--inspect=0.0.0.0:5859", "index.js"]

0 commit comments

Comments
 (0)