Files
plex-playlist/Dockerfile.cicd-frontend
Cliff Hill 524bf21244
Some checks failed
Tests / Build Base Setup Image (push) Successful in 1m22s
Tests / Build Frontend Environment (push) Failing after 12m33s
Tests / Build Backend Environment (push) Failing after 12m37s
Tests / Frontend Linting (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Backend Linting (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Redoing this now with multi stage docker images for the CICD.
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2025-10-26 21:34:06 -04:00

34 lines
811 B
Docker

# CICD Frontend - Extends setup with Node.js environment
FROM cicd-setup:latest
# Install Node.js 20
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
# Enable corepack for yarn
RUN corepack enable
# Set working directory to frontend
WORKDIR /workspace/frontend
# Install frontend dependencies
RUN yarn install --immutable
# Verify tools are available (these should be installed via package.json)
RUN yarn eslint --version
RUN yarn prettier --version
RUN yarn tsc --version
# Build the application
RUN yarn build
# Verify build output
RUN ls -la dist/ && echo "Frontend build completed successfully"
# Set working directory back to workspace root for flexibility
WORKDIR /workspace
# Default command
CMD ["/bin/bash"]