mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-28 04:24:33 +00:00
build
This commit is contained in:
parent
912a11da22
commit
7dc3ed10cc
1 changed files with 4 additions and 3 deletions
|
|
@ -4,10 +4,11 @@ FROM sergeantpanda/dispatcharr:base AS base
|
|||
# --- Build frontend ---
|
||||
FROM node:20 AS frontend-builder
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
COPY --from=base /app /app
|
||||
WORKDIR /app/frontend
|
||||
RUN corepack enable && corepack prepare yarn@stable --activate && \
|
||||
cd frontend && yarn install && yarn build && \
|
||||
rm -rf frontend/node_modules frontend/.cache
|
||||
yarn install && yarn build && \
|
||||
rm -rf node_modules .cache
|
||||
|
||||
# --- Final image based on the base ---
|
||||
FROM sergeantpanda/dispatcharr:base AS final
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue