Skip to content

Commit

Permalink
Revert back to the original way of building docker
Browse files Browse the repository at this point in the history
The original way of building the docker image was to use the source already in teh current directory. That is better than the way I updated it to be, which is to pull a specific version from npm. (redundant because it's already here)

This also removes the need to keep track of the latest node package version number.
  • Loading branch information
knickers committed Dec 12, 2015
1 parent d46b67a commit 4878ec3
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ RUN set -x \
&& tini -h \
&& apt-get purge --auto-remove -y ca-certificates curl

ENV MONGO_EXPRESS 0.27.7

RUN npm install mongo-express@$MONGO_EXPRESS

WORKDIR /node_modules/mongo-express
WORKDIR /app
COPY . /app

RUN npm install
RUN cp config.default.js config.js

ENV ME_CONFIG_MONGODB_SERVER="mongo"
ENV ME_CONFIG_BASICAUTH_USERNAME=""
ENV ME_CONFIG_BASICAUTH_PASSWORD=""

EXPOSE 8081
CMD ["tini", "--", "node", "app"]
CMD ["tini", "--", "npm", "start"]

0 comments on commit 4878ec3

Please sign in to comment.