Skip to content

Commit

Permalink
Fix server container build
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Mar 15, 2024
1 parent e0ae12f commit 2c554da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/twenty-docker/prod/twenty-front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WORKDIR /app
COPY ./package.json .
COPY ./yarn.lock .
COPY ./.yarnrc.yml .
COPY ./nx.json .
COPY ./tsconfig.base.json .
COPY ./.yarn/releases /app/.yarn/releases
COPY ./tools/eslint-rules /app/tools/eslint-rules
Expand Down
6 changes: 4 additions & 2 deletions packages/twenty-docker/prod/twenty-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ COPY ./package.json .
COPY ./yarn.lock .
COPY ./.yarnrc.yml .
COPY ./tsconfig.base.json .
COPY ./nx.json .
COPY ./.yarn/releases /app/.yarn/releases
COPY ./packages/twenty-emails /app/packages/twenty-emails
COPY ./packages/twenty-server /app/packages/twenty-server
RUN yarn workspaces focus twenty-emails twenty-server
RUN yarn

RUN npx nx reset
RUN npx nx run twenty-server:build:packageJson
RUN mv /app/packages/twenty-server/dist/package.json /app/packages/twenty-server/package.json
RUN yarn workspaces focus twenty-emails twenty-server
RUN npx nx run twenty-server:build
RUN yarn workspaces focus twenty-emails twenty-server

WORKDIR /app/packages/twenty-server

Expand Down

0 comments on commit 2c554da

Please sign in to comment.