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

19 lines
323 B
Docker

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