Put back twenty-website dockerfile
This commit is contained in:
29
packages/twenty-docker/twenty-website/Dockerfile
Normal file
29
packages/twenty-docker/twenty-website/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
FROM node:18.17.1-alpine as twenty-website-build
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./package.json .
|
||||||
|
COPY ./yarn.lock .
|
||||||
|
COPY ./.yarnrc.yml .
|
||||||
|
COPY ./.yarn/releases /app/.yarn/releases
|
||||||
|
COPY ./tools/eslint-rules /app/tools/eslint-rules
|
||||||
|
COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package.json
|
||||||
|
|
||||||
|
RUN yarn
|
||||||
|
|
||||||
|
COPY ./packages/twenty-website /app/packages/twenty-website
|
||||||
|
RUN npx nx build twenty-website
|
||||||
|
|
||||||
|
FROM node:18.17.1-alpine as twenty-website
|
||||||
|
|
||||||
|
WORKDIR /app/packages/twenty-website
|
||||||
|
|
||||||
|
COPY --from=twenty-website-build /app /app
|
||||||
|
|
||||||
|
WORKDIR /app/packages/twenty-website
|
||||||
|
|
||||||
|
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 website."
|
||||||
|
|
||||||
|
CMD ["/bin/sh", "-c", "npx nx start"]
|
||||||
Reference in New Issue
Block a user