-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (29 loc) · 883 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
35
FROM node:12-alpine
RUN apk add --no-cache --virtual native-deps \
g++ gcc libgcc libstdc++ linux-headers make automake autoconf libtool python \
git \
shadow \
musl-dev \
nasm \
tiff \
jpeg \
zlib \
zlib-dev \
file \
pkgconf
WORKDIR /app
COPY ./package-lock.json /app/package-lock.json
COPY ./package.json /app/package.json
RUN NODE_ENV=production npm ci
RUN apk del native-deps && rm -rf /var/cache/apk/*
COPY ./lib /app/lib
COPY ./public /app/public
COPY ./static /app/static
COPY ./entrypoint.sh /app/entrypoint.sh
COPY ./gatsby-browser.js /app/gatsby-browser.js
COPY ./gatsby-config.js /app/gatsby-config.js
COPY ./gatsby-node.js /app/gatsby-node.js
COPY ./gatsby-ssr.js /app/gatsby-ssr.js
COPY ./gatsby-ssr.js /app/gatsby-ssr.js
COPY ./.env.* /app/
ENTRYPOINT [ "./entrypoint.sh" ]