diff --git a/Dockerfile b/Dockerfile index ec9096ad3c..39010290f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Set the base image -FROM node:18.10.0 +FROM node:16.14.0 # WORKDIR /usr/src/app/ WORKDIR /home/gateway @@ -25,11 +25,11 @@ ENV INSTALLATION_TYPE=docker RUN mkdir -p /home/gateway/conf /home/gateway/logs /home/gateway/db /home/gateway/certs # Install dependencies and compile -RUN npm install -RUN npm run build +RUN yarn install --frozen-lockfile +RUN yarn build # Expose port 15888 - note that docs port is 8080 EXPOSE 15888 # Set the default command to run when starting the container -CMD npm run start +CMD yarn run start