Build Docker image

This commit is contained in:
Manuel Bustillo 2024-11-16 13:57:42 +01:00
parent ce1ce8c807
commit 56e7e3b203

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM node:23 AS build
ENV FORCE_COLOR=0
RUN corepack enable
WORKDIR /opt/docusaurus
WORKDIR /opt/docusaurus
COPY . /opt/docusaurus/
RUN npm ci
RUN npm run build
FROM nginx:alpine
COPY --from=build /opt/docusaurus/build /usr/share/nginx/html
EXPOSE 80