-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 941 Bytes
/
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
FROM node:9-alpine
ENV GOSU_VERSION 1.10
# Use edge packages
RUN set -ex; \
sed -i -e 's/v3\.\d/edge/g' /etc/apk/repositories; \
echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories; \
apk add --upgrade --no-cache apk-tools; \
apk add --update --no-cache gosu@testing; \
apk add --update --no-cache git python make musl-dev gcc wget ca-certificates
# Environment user
RUN set -ex \
&& mkdir -p /app \
&& mkdir -p /docker-entrypoint.d \
&& chown node.node -R /app \
&& npm config set -g cache /app/.cache \
&& npm config set -g progress false \
&& npm config set -g jobs 2 \
&& npm config set -g color false \
&& npm config set -g loglevel http
ENV LANG=C.UTF-8 \
LC_COLLATE=C \
PATH=/app/node_modules/.bin:${PATH}
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
COPY docker-entrypoint.sh /sbin/docker-entrypoint.sh
WORKDIR /app
CMD ["node"]