Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
Reorganise Dockerfile for better caching
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed May 24, 2018
1 parent 6cb0741 commit 7441dcd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Dockerfile
Expand Up @@ -5,8 +5,6 @@ MAINTAINER Paul Walsh <paulywalsh@gmail.com>
ENV LANG=en_US.UTF-8 \
APP_DIR=/srv/app

COPY . ${APP_DIR}

WORKDIR ${APP_DIR}

RUN apk add --no-cache --virtual build-dependencies \
Expand All @@ -18,18 +16,24 @@ RUN apk add --no-cache --virtual build-dependencies \
readline-dev \
curl \
gcc \
git \
&& apk add --no-cache \
git

RUN apk add --no-cache \
bash \
gettext \
ca-certificates \
openssl \
libpq \
postgresql-client \
make \
&& update-ca-certificates \
&& make install \
&& apk del build-dependencies
make

RUN update-ca-certificates

COPY . ${APP_DIR}

RUN make install

RUN apk del build-dependencies

EXPOSE 5000

Expand Down

0 comments on commit 7441dcd

Please sign in to comment.