-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (29 loc) · 1023 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:16.15.1-alpine3.14
LABEL maintainer="Michael Hettmer - @michaelhettmer"
LABEL description="empty description"
# pin build dependency versions to make image deterministic and reliable
ENV GIT_VERSION 2.32
ENV PYTHON3_VERSION 3.9
ENV GPP_VERSION 10.3
ENV MAKE_VERSION 4.3
ENV AUTOMAKE_VERSION 1.16
ENV AUTOCONF_VERSION 2.71
ENV LIBTOOL_VERSION 2.4
ENV PKGCONF_VERSION 1.7
ENV NASM_VERSION 2.15
# install necessary build dependencies
RUN apk update && apk add --no-cache \
git~=$GIT_VERSION \
python3~=$PYTHON3_VERSION \
g++~=$GPP_VERSION \
make~=$MAKE_VERSION \
automake~=$AUTOMAKE_VERSION \
autoconf~=$AUTOCONF_VERSION \
libtool~=$LIBTOOL_VERSION \
pkgconf~=$PKGCONF_VERSION \
nasm~=$NASM_VERSION \
&& rm -rf /var/cache/apk/*
# pin node dependency versions to make image deterministic and reliable
ENV NODE_GYP_VERSION 9.0.0
# install node-gyp globally to be used by gatsby-plugin-sharp and other image related dependencies
RUN npm install -g node-gyp@$NODE_GYP_VERSION