Files
twenty/packages/twenty-docker/twenty-docs/Dockerfile
Félix Malfait 7a34dc4910 Simplify docs and remove Docker local setup (#4783)
Having 2 different dev setups caused confusion, let's remove the Docker
local setup and recommend people install yarn locally.

Also simplified some docs by merging pages together, the recommend
self-hosting option is now the docker-compose / to adapt the
docker-compose.
2024-04-03 16:38:28 +02:00

32 lines
862 B
Docker

FROM node:18.17.1-alpine as twenty-docs-build
WORKDIR /app
ARG SHOULD_INDEX_DOC
COPY ./package.json .
COPY ./yarn.lock .
COPY ./.yarnrc.yml .
COPY ./.yarn/releases /app/.yarn/releases
COPY ./packages/twenty-docs/package.json /app/packages/twenty-docs/package.json
COPY ./packages/twenty-emails /app/packages/twenty-emails
RUN yarn
COPY ./packages/twenty-docs /app/packages/twenty-docs
RUN yarn nx build twenty-docs
CMD ["tail", "-f", "/dev/null"]
FROM node:18.17.1-alpine as twenty-docs
WORKDIR /app/packages/twenty-docs
COPY --from=twenty-docs-build /app/packages/twenty-docs/build ./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"]