Files
twenty/infra/build/docs/Dockerfile
Charles Bochet 42af74eb46 Build render (#2188)
* Build for arm and amd

* Add scripts

* Add scripts
2023-10-22 23:47:43 +02:00

19 lines
445 B
Docker

FROM node:18.16.0-alpine as docs
WORKDIR /app/docs
ARG SHOULD_INDEX_DOC
COPY ./docs/package.json .
COPY ./docs/yarn.lock .
RUN yarn install --prod
COPY ./docs .
RUN npm run build
RUN yarn global add serve
LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty
LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the documentation."
CMD ["serve", "-s", "./build"]