-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
37 lines (28 loc) · 1.14 KB
/
Dockerfile
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
34
35
36
37
FROM node:10.15.1-stretch-slim
ENV TINI_VERSION=v0.18.0 \
TINI_KILL_PROCESS_GROUP=enabled \
TINI_SUBREAPER=enabled
RUN curl -L -o /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static \
&& curl -L -o /tini.asc https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static.asc \
&& (gpg --no-tty --keyserver ha.pool.sks-keyservers.net --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
|| gpg --no-tty --keyserver keyserver.ubuntu.com --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7) \
&& gpg --no-tty --verify /tini.asc \
&& chmod +x /tini
ENTRYPOINT ["/tini", "-sg", "--"]
RUN apt-get update \
&& apt-get --assume-yes --no-install-recommends install \
git \
parallel \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 --no-cache-dir install setuptools honcho
ENV SHELL=/bin/bash \
PYTHONIOENCODING=utf-8 \
PYTHONUNBUFFERED=enabled \
WORKDIR=/app
ENV PATH="${WORKDIR}/bin:${WORKDIR}/node_modules/.bin:${PATH}"
WORKDIR ${WORKDIR}
RUN mkdir /mnt/tmp \
&& chown -R node:node ${WORKDIR} /mnt/tmp
USER node