Loading Dockerfile +6 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ FROM node:${NODE_IMAGE_TAG} LABEL maintainer="info@redmic.es" ENV NODE_ENV="production" EXPOSE 3050 HEALTHCHECK --interval=30s --timeout=15s --start-period=1m --retries=3 \ Loading @@ -17,7 +19,10 @@ WORKDIR ${DIRPATH} ADD dist*.tar.gz ./ RUN node -e 'const fs = require("fs"); const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8")); delete pkg.devDependencies; fs.writeFileSync("./package.json", JSON.stringify(pkg), "utf-8");' && \ RUN node -e 'const fs = require("fs"); \ const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8")); \ delete pkg.devDependencies; \ fs.writeFileSync("./package.json", JSON.stringify(pkg), "utf-8");' && \ yarn install --production --ignore-optional --ignore-scripts && \ yarn cache clean && \ yarn autoclean --init && yarn autoclean --force && \ Loading Loading
Dockerfile +6 −1 Original line number Diff line number Diff line Loading @@ -4,6 +4,8 @@ FROM node:${NODE_IMAGE_TAG} LABEL maintainer="info@redmic.es" ENV NODE_ENV="production" EXPOSE 3050 HEALTHCHECK --interval=30s --timeout=15s --start-period=1m --retries=3 \ Loading @@ -17,7 +19,10 @@ WORKDIR ${DIRPATH} ADD dist*.tar.gz ./ RUN node -e 'const fs = require("fs"); const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8")); delete pkg.devDependencies; fs.writeFileSync("./package.json", JSON.stringify(pkg), "utf-8");' && \ RUN node -e 'const fs = require("fs"); \ const pkg = JSON.parse(fs.readFileSync("./package.json", "utf-8")); \ delete pkg.devDependencies; \ fs.writeFileSync("./package.json", JSON.stringify(pkg), "utf-8");' && \ yarn install --production --ignore-optional --ignore-scripts && \ yarn cache clean && \ yarn autoclean --init && yarn autoclean --force && \ Loading