This repository was archived by the owner on Dec 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.4 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:slim
ARG BUILD_DATE
ARG VCS_REF
ENV INITVERSION 1.2.1
LABEL Maintainer="Zaher Ghaibeh <z@zah.me>" \
Description="Lightweight nodejs container based on ubuntu with bower, yarm, gulp and typescript." \
org.label-schema.name="Nodejs Toolkit" \
org.label-schema.description="Lightweight nodejs container based on ubuntu with bower, yarm, gulp and typescript." \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/linuxjuggler/node-toolkit.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0.0"
RUN apt-get update && apt-get -yqq install apt-transport-https && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get -yqq update && \
apt-get -yqq --no-install-recommends install git yarn && \
npm -g i gulp-cli bower npm-cache typescript && \
npm cache verify && npm cache clean --force && \
apt-get -yqq autoremove && \
apt-get -yqq clean && \
rm -rf /var/lib/apt/lists/* /var/cache/* /tmp/* /var/tmp/* && \
wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v${INITVERSION}/dumb-init_${INITVERSION}_amd64 && \
chmod +x /usr/local/bin/dumb-init
WORKDIR /workspace
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]