-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (21 loc) · 912 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
FROM node:bookworm
COPY ./ /data/
WORKDIR /data/
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get --allow-releaseinfo-change update \
&& apt-get -o Dpkg::Options::="--force-confnew" -yV upgrade --with-new-pkgs \
&& apt-get -y install libpng-dev fftw-dev python3-dev libimagequant-dev libvips-dev build-essential python3 \
&& node -v \
&& set -x \
&& npm install [email protected] -g --loglevel verbose \
&& npm install --legacy-peer-deps --loglevel verbose \
&& node_modules/.bin/gatsby clean --verbose \
&& node_modules/.bin/gatsby build --prefix-paths --verbose \
&& npm cache clean --force
FROM node:bookworm-slim
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get --allow-releaseinfo-change update \
&& apt-get -o Dpkg::Options::="--force-confnew" -yV upgrade --with-new-pkgs \
&& apt-get -y install awscli
WORKDIR /data/
COPY --from=0 /data/ /data/