You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
553 B
Docker
31 lines
553 B
Docker
FROM node:14.19.2-alpine as builder
|
|
|
|
ENV NODE_ENV=production
|
|
ENV GATSBY_TELEMETRY_DISABLED=1
|
|
|
|
RUN apk --no-cache add shadow \
|
|
gcc \
|
|
musl-dev \
|
|
autoconf \
|
|
automake \
|
|
make \
|
|
libtool \
|
|
nasm \
|
|
tiff \
|
|
jpeg \
|
|
zlib \
|
|
zlib-dev \
|
|
file \
|
|
pkgconf
|
|
WORKDIR /usr/src/app
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn
|
|
COPY . ./
|
|
RUN yarn build
|
|
|
|
FROM nginx:1.21-alpine
|
|
COPY --from=builder /usr/src/app/public /var/www
|
|
COPY default.conf /etc/nginx/templates/default.conf.template
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|