Reorganize base image build arguments in Dockerfile

This commit is contained in:
SergeantPanda 2025-05-08 17:16:57 -05:00
parent 1ff748d3d1
commit daa40033fc

View file

@ -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