mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
fix(frontend): migrate code to use the commons workspace
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
7320fe2ac1
commit
c489aacea0
9 changed files with 24 additions and 16 deletions
|
@ -13,15 +13,21 @@ USER node
|
|||
WORKDIR /usr/src/app
|
||||
|
||||
COPY --chown=node .yarn/plugins .yarn/plugins
|
||||
COPY --chown=node .yarn/patches .yarn/patches
|
||||
COPY --chown=node .yarn/releases .yarn/releases
|
||||
COPY --chown=node .yarnrc.yml .yarnrc.yml
|
||||
COPY --chown=node package.json package.json
|
||||
COPY --chown=node yarn.lock yarn.lock
|
||||
COPY --chown=node backend/package.json backend/
|
||||
COPY --chown=node commons commons
|
||||
COPY --chown=node frontend frontend
|
||||
RUN --mount=type=cache,sharing=locked,uid=1000,gid=1000,target=/tmp/.yarn \
|
||||
yarn install --immutable && yarn workspaces focus @hedgedoc/frontend
|
||||
|
||||
WORKDIR /usr/src/app/commons
|
||||
|
||||
RUN yarn build
|
||||
|
||||
WORKDIR /usr/src/app/frontend
|
||||
|
||||
RUN rm -rf public/public && \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue