From 8ab2e7dfe476ca373c6845fbeb609cc9aa125092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Frederik=20J=C3=B8rgensen?= Date: Thu, 4 Nov 2021 14:42:07 +0100 Subject: [PATCH] fix: Only install production dependencies when building Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 37dcddda..091acbcb 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM node:12.13.1-alpine RUN apk add --no-cache git COPY . /opt/sisyfos-audio-controller WORKDIR /opt/sisyfos-audio-controller -RUN yarn install +RUN yarn install --production --frozen-lockfile EXPOSE 1176/tcp EXPOSE 1176/udp EXPOSE 5255/tcp EXPOSE 5255/udp -CMD ["yarn", "start"] \ No newline at end of file +CMD ["yarn", "start"]