-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Dockerfile + extend marblecutter-tools
- Loading branch information
Showing
1 changed file
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |