twenty/infra/prod/docs/Dockerfile
Emilien Chauvet de6ebd96c5
Prevent indexing on docs outside of production (#1054)
* Prevent indexing on docs outside of production

* Add dockerfile arg

* Rename args

* Add logs

* Move arg to the right dockerfile

* Remove log
2023-08-07 09:20:31 -07:00

17 lines
242 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
CMD ["serve", "-s", "./build"]