Skip to content

Commit

Permalink
Improve docker image build time through caching (#1144)
Browse files Browse the repository at this point in the history
  • Loading branch information
jecihjoy authored Feb 7, 2022
1 parent 9bcc95a commit 378017f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/etl-rest-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM keymetrics/pm2:14-alpine

COPY package.json /opt/etl/package.json
RUN npm install -g --save-dev @babel/core @babel/node
RUN npm install
COPY . /opt/etl
RUN apk add --no-cache git
RUN npm install -g --save-dev @babel/core @babel/node
RUN rm -rf /opt/etl/conf
RUN ls && pwd
WORKDIR /opt/etl
RUN npm install
RUN apk add --no-cache tzdata
ENV TZ Africa/Nairobi

Expand Down

0 comments on commit 378017f

Please sign in to comment.