Skip to content

Commit

Permalink
feature: Speed up Docker rebuild using cache
Browse files Browse the repository at this point in the history
Allows faster CI and dev builds of the Docker image through the use
of cached layers.
  • Loading branch information
Salim committed Jun 13, 2018
1 parent 3a721fd commit 728f1b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ MAINTAINER Giorgio Regni <gr@scality.com>
WORKDIR /usr/src/app

# Keep the .git directory in order to properly report version
COPY . /usr/src/app
COPY ./package.json .

RUN apt-get update \
&& apt-get install -y jq python git build-essential --no-install-recommends \
Expand All @@ -15,6 +15,8 @@ RUN apt-get update \
&& rm -rf ~/.node-gyp \
&& rm -rf /tmp/npm-*

COPY ./ ./

VOLUME ["/usr/src/app/localData","/usr/src/app/localMetadata"]

ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]
Expand Down

0 comments on commit 728f1b4

Please sign in to comment.