Use yarn pnp as module linker (#2252)

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-07-30 23:32:19 +02:00 committed by GitHub
parent 20a48b38d7
commit 6ba957585a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 271 additions and 7285 deletions

View file

@ -28,7 +28,7 @@ COPY --chown=node .yarn/ .yarn/
COPY --chown=node public/ public/
COPY --chown=node --from=builder /usr/src/app/.next/ .next/
USER node
RUN yarn workspaces focus --all --production && rm -rf .yarn/cache
RUN yarn workspaces focus --all --production
EXPOSE 3001/tcp
CMD ["/usr/local/bin/yarn", "start:for-real-backend"]