Skip to content

Commit

Permalink
Refactor Dockerfile + extend marblecutter-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mojodna committed Nov 27, 2017
1 parent 8f3acb7 commit 437ac33
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
FROM quay.io/hotosm/oam-dynamic-tiler-tools
FROM quay.io/mojodna/marblecutter-tools

ARG NODE_ENV=production

RUN mkdir -p /app
COPY . /app
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
git \
software-properties-common \
&& curl -sf https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& add-apt-repository -s "deb https://deb.nodesource.com/node_6.x $(lsb_release -c -s) main" \
&& apt-get update \
&& apt-get install --no-install-recommends -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN npm install
COPY package.json /app

RUN npm install \
&& rm -rf /root/.npm

COPY . /app

ENV PATH /app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
EXPOSE 4000

CMD ["./node_modules/.bin/nf", "start"]
CMD ["nf", "start"]

0 comments on commit 437ac33

Please sign in to comment.