mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-31 22:15:26 +00:00
Reorganize base image build arguments in Dockerfile
This commit is contained in:
parent
1ff748d3d1
commit
daa40033fc
1 changed files with 5 additions and 5 deletions
|
|
@ -1,3 +1,8 @@
|
|||
# Define base image build arguments (must be before any FROM)
|
||||
ARG REPO_OWNER=dispatcharr
|
||||
ARG REPO_NAME=dispatcharr
|
||||
ARG BASE_TAG=base
|
||||
|
||||
# --- Build frontend ---
|
||||
FROM node:20 AS frontend-builder
|
||||
WORKDIR /app/frontend
|
||||
|
|
@ -6,11 +11,6 @@ RUN corepack enable && corepack prepare yarn@stable --activate && \
|
|||
yarn install && yarn build && \
|
||||
rm -rf node_modules .cache
|
||||
|
||||
# --- Define base image build arguments ---
|
||||
ARG REPO_OWNER=dispatcharr
|
||||
ARG REPO_NAME=dispatcharr
|
||||
ARG BASE_TAG=base
|
||||
|
||||
# --- Final image based on the dynamic base ---
|
||||
FROM ghcr.io/${REPO_OWNER}/${REPO_NAME}:${BASE_TAG} AS final
|
||||
ENV VIRTUAL_ENV=/dispatcharrpy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue