20 lines
349 B
Docker
20 lines
349 B
Docker
ARG SITE=signpost.cloud.mareshq.com
|
|
|
|
FROM node:lts as builder
|
|
|
|
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
|