Skip to content

Commit

Permalink
Merge pull request #92 from pelias/dockerfile-tweaks
Browse files Browse the repository at this point in the history
Dockerfile improvements
  • Loading branch information
orangejulius authored Sep 13, 2018
2 parents 51d39d5 + 8bf24c7 commit d3fcd71
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ FROM pelias/baseimage

# downloader apt dependencies
# note: this is done in one command in order to keep down the size of intermediate containers
RUN apt-get update && apt-get install -y autoconf automake libtool pkg-config python bzip2 && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y bzip2 && rm -rf /var/lib/apt/lists/*

# change working dir
ENV WORKDIR /code/pelias/pip-service
WORKDIR ${WORKDIR}

# copy package.json first to prevent npm install being rerun when only code changes
COPY ./package.json ${WORKDIR}
RUN npm install

# copy code from local checkout
ADD . ${WORKDIR}

# install npm dependencies
RUN npm install

# run tests
RUN npm test

Expand Down

0 comments on commit d3fcd71

Please sign in to comment.