You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
309 B

# Builder
FROM node:alpine as builder
COPY . /src
RUN apk add --no-cache git \
&& npm install \
&& npm run build
# App
FROM nginx:latest
COPY --from=builder /src/webapp /app
COPY config.sample.json /app/config.json
RUN rm -rf /usr/share/nginx/html \
&& ln -s /app /usr/share/nginx/html