-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.core
52 lines (43 loc) · 1.29 KB
/
Dockerfile.core
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
42
43
44
45
46
47
48
49
50
51
52
ARG NODE_VERSION
FROM node:${NODE_VERSION}-alpine
ARG GITHUB_SHA
ARG BUILD_TIMESTAMP
RUN apk --no-cache add \
bash \
curl \
tini \
apk-tools \
build-base \
ca-certificates \
ncurses-terminfo \
libssh2-dev \
openssl-dev \
cyrus-sasl-dev \
python3
ENV NPM_CONFIG_LOGLEVEL error
ENV WITH_SASL 0
RUN node --version
RUN yarn --version
RUN npm --version
# Install bunyan
RUN yarn global add \
--ignore-optional \
--no-progress \
--no-emoji \
--no-cache \
bunyan
RUN mkdir -p /app/source
WORKDIR /app/source
COPY docker-pkg-fix.js /usr/local/bin/docker-pkg-fix
COPY wait-for-it.sh /usr/local/bin/wait-for-it
ENV NODE_OPTIONS "--max-old-space-size=2048"
LABEL org.opencontainers.image.created="$BUILD_TIMESTAMP" \
org.opencontainers.image.documentation="https://github.com/terascope/base-docker-image/blob/master/README.md" \
org.opencontainers.image.licenses="MIT License" \
org.opencontainers.image.revision="$GITHUB_SHA" \
org.opencontainers.image.source="https://github.com/terascope/base-docker-image" \
org.opencontainers.image.title="Node-base-core" \
org.opencontainers.image.vendor="Terascope" \
io.terascope.image.node_version="$NODE_VERSION"
# Use tini to handle sigterm and zombie processes
ENTRYPOINT ["/sbin/tini", "--"]