diff --git a/bitnami/express/Dockerfile b/bitnami/express/Dockerfile index 6e1c0ff595eb..81d721a49b38 100644 --- a/bitnami/express/Dockerfile +++ b/bitnami/express/Dockerfile @@ -30,24 +30,17 @@ ENV PATH=/opt/bitnami/node/bin:/opt/bitnami/python/bin:$PATH \ ENV BITNAMI_APP_NAME=express ENV BITNAMI_IMAGE_VERSION=4.14.0-r14 -RUN npm install -g express-generator@4 &&\ - npm install -g bower@1.8.0 +RUN bitnami-pkg install express-generator-4.13.4-1 --checksum 937c865650282fa55c0e543166b95b0aab9e4cf891782cee056037697b2b64e3 +RUN bitnami-pkg install express-4.14.0-1 --checksum f98a7f8e85d038bb895d1105f6a0d995810b004f78b4fc0a0299237dc5070795 +RUN npm install -g bower@1.8.0 COPY rootfs/ / # The extra files that we bundle should use the Bitnami User # so the entrypoint does not have any permission issues -RUN chown -R bitnami:bitnami /app_template - -RUN mkdir /app && chown bitnami: /app +RUN chown -R bitnami: /app /app_template USER bitnami -# This will add an specific version of Express that will validate the package.json requirement -# so we will not download any other version -# It also generates the cache in ~/.npm -RUN mkdir ~/test_app && cd ~/test_app &&\ - npm install express@4.14.0 &&\ - express -f . && npm install && sudo rm -rf /tmp/npm* ~/test_app WORKDIR /app EXPOSE 3000