1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-internal-static-sites/build/Containerfile

18 lines
321 B
Docker

FROM node:16 as builder
ARG SITE
WORKDIR /build
COPY . ./
WORKDIR /build/sites/${SITE}
RUN yarn install --frozen-lockfile && yarn build
# Final image
FROM nginx:mainline-alpine as nginx
ARG SITE
COPY ./build/nginx/site.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /build/sites/${SITE}/out /var/www/html