Fix nx lint setup (#3234)
* Fix nx lint setup * Fixes * Fixes * Add missing metadata Fixes Fix Fixes * Fix
This commit is contained in:
@ -48,6 +48,12 @@ prod-postgres-build:
|
||||
prod-postgres-run:
|
||||
@docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres --name twenty-postgres twenty-postgres
|
||||
|
||||
prod-website-build:
|
||||
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-website/Dockerfile --build-arg GITHUB_TOKEN=REPLACE_ME --tag twenty-website . && cd -
|
||||
|
||||
prod-website-run:
|
||||
@docker run -d -p 3000:3000 --name twenty-website twenty-website
|
||||
|
||||
release-front:
|
||||
@cd ../.. && docker buildx build \
|
||||
--push \
|
||||
|
||||
@ -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