Skip to content

Commit

Permalink
chore: skip dev deps install in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Oct 20, 2023
1 parent f93aa93 commit 924615c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ WORKDIR /usr/src/app/

COPY . .

RUN npm install
# set production env, npm install will not install devDependencies
ENV NODE_ENV=production

RUN npm install --omit=dev
RUN chmod 755 /usr/src/app/bin/aedes

EXPOSE 1883 3000 8883 4000
Expand Down

0 comments on commit 924615c

Please sign in to comment.