Fix nx lint setup (#3234)
* Fix nx lint setup * Fixes * Fixes * Add missing metadata Fixes Fix Fixes * Fix
This commit is contained in:
@ -10,7 +10,6 @@ COPY ./tools/eslint-rules /app/tools/eslint-rules
|
||||
COPY ./packages/twenty-server /app/packages/twenty-server
|
||||
RUN yarn
|
||||
|
||||
RUN yarn
|
||||
RUN yarn nx build twenty-server
|
||||
|
||||
WORKDIR /app/packages/twenty-server
|
||||
|
||||
30
packages/twenty-docker/prod/twenty-website/Dockerfile
Normal file
30
packages/twenty-docker/prod/twenty-website/Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
FROM node:18.17.1-alpine as twenty-website-build
|
||||
|
||||
ARG GITHUB_TOKEN
|
||||
ARG BASE_URL
|
||||
|
||||
ENV GITHUB_TOKEN=$GITHUB_TOKEN
|
||||
ENV BASE_URL=$BASE_URL
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json .
|
||||
COPY ./.eslintrc.js .
|
||||
COPY ./yarn.lock .
|
||||
COPY ./.yarnrc.yml .
|
||||
COPY ./.yarn/releases /app/.yarn/releases
|
||||
COPY ./packages/twenty-website /app/packages/twenty-website
|
||||
|
||||
RUN yarn
|
||||
RUN yarn 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
|
||||
|
||||
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", "yarn nx start twenty-website"]
|
||||
Reference in New Issue
Block a user