-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
41 lines (35 loc) · 1.23 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
38
39
40
41
FROM mhart/alpine-node:latest
# 036A9C25BF357DD4 - Tianon Gravi <tianon@tianon.xyz>
# http://pgp.mit.edu/pks/lookup?op=vindex&search=0x036A9C25BF357DD4
ENV GOSU_VERSION="1.7" \
GOSU_DOWNLOAD_URL="https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64" \
GOSU_DOWNLOAD_SIG="https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64.asc" \
GOSU_DOWNLOAD_KEY="0x036A9C25BF357DD4"
# Download and install gosu
# https://github.com/tianon/gosu/releases
RUN buildDeps='curl gnupg' HOME='/root' \
&& set -x \
&& apk add --update $buildDeps \
&& gpg-agent --daemon \
&& gpg --keyserver pgp.mit.edu --recv-keys $GOSU_DOWNLOAD_KEY \
&& echo "trusted-key $GOSU_DOWNLOAD_KEY" >> /root/.gnupg/gpg.conf \
&& curl -sSL "$GOSU_DOWNLOAD_URL" > gosu-amd64 \
&& curl -sSL "$GOSU_DOWNLOAD_SIG" > gosu-amd64.asc \
&& gpg --verify gosu-amd64.asc \
&& rm -f gosu-amd64.asc \
&& mv gosu-amd64 /usr/bin/gosu \
&& chmod +x /usr/bin/gosu \
&& apk del --purge $buildDeps \
&& rm -rf /root/.gnupg \
&& rm -rf /var/cache/apk/* \
;
RUN apk update && apk add \
make \
git \
python \
g++ \
;
RUN npm install -g gulp
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]