Build Docker image in CI #1

Merged
bustikiller merged 2 commits from docker-build into main 2024-11-16 13:02:02 +00:00
Showing only changes of commit 56e7e3b203 - Show all commits

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