Skip to content

Commit

Permalink
docker: Reduce Dockerfile image size (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux authored Jan 10, 2023
1 parent 00fccf8 commit 07a969c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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 unzip awscli && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install --no-install-recommends -y unzip awscli && rm -rf /var/lib/apt/lists/*

# change working dir
ENV WORKDIR /code/pelias/openaddresses
WORKDIR ${WORKDIR}

# copy package.json first to prevent npm install being rerun when only code changes
COPY ./package.json ${WORKDIR}
RUN npm install
RUN npm install && npm cache clean --force;

# copy code into image
ADD . ${WORKDIR}
Expand Down

0 comments on commit 07a969c

Please sign in to comment.