mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
de6ebd96c5
* Prevent indexing on docs outside of production * Add dockerfile arg * Rename args * Add logs * Move arg to the right dockerfile * Remove log
17 lines
242 B
Docker
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"]
|