Files
documentation/Dockerfile
Cedric Verstraeten f85dcfb98f Update Dockerfile
2024-09-30 21:53:53 +02:00

15 lines
272 B
Docker

FROM node:18.3.0
# Build the documentation website
RUN mkdir -p /app
WORKDIR /app
ADD . /app
RUN yarn && yarn run build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=0 /app/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]