chore: Update all TrueCV references to RealCV
- Updated Dockerfiles (Dockerfile, Dockerfile.migrations) - Updated docker-compose.yml (service names, container names, network) - Updated deploy scripts (README.md, server-setup.sh, deploy.sh) - Updated .gitignore - Updated all strategy documentation files - Updated app.js comment Note: Passwords containing "TrueCV" were intentionally preserved. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
20
Dockerfile
20
Dockerfile
@@ -3,11 +3,11 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy solution and project files first for better layer caching
|
||||
COPY TrueCV.sln ./
|
||||
COPY src/TrueCV.Domain/TrueCV.Domain.csproj src/TrueCV.Domain/
|
||||
COPY src/TrueCV.Application/TrueCV.Application.csproj src/TrueCV.Application/
|
||||
COPY src/TrueCV.Infrastructure/TrueCV.Infrastructure.csproj src/TrueCV.Infrastructure/
|
||||
COPY src/TrueCV.Web/TrueCV.Web.csproj src/TrueCV.Web/
|
||||
COPY RealCV.sln ./
|
||||
COPY src/RealCV.Domain/RealCV.Domain.csproj src/RealCV.Domain/
|
||||
COPY src/RealCV.Application/RealCV.Application.csproj src/RealCV.Application/
|
||||
COPY src/RealCV.Infrastructure/RealCV.Infrastructure.csproj src/RealCV.Infrastructure/
|
||||
COPY src/RealCV.Web/RealCV.Web.csproj src/RealCV.Web/
|
||||
|
||||
# Restore dependencies
|
||||
RUN dotnet restore
|
||||
@@ -16,7 +16,7 @@ RUN dotnet restore
|
||||
COPY src/ src/
|
||||
|
||||
# Build and publish
|
||||
WORKDIR /src/src/TrueCV.Web
|
||||
WORKDIR /src/src/RealCV.Web
|
||||
RUN dotnet publish -c Release -o /app/publish --no-restore
|
||||
|
||||
# Runtime stage
|
||||
@@ -27,16 +27,16 @@ WORKDIR /app
|
||||
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Create non-root user for security
|
||||
RUN groupadd -r truecv && useradd -r -g truecv truecv
|
||||
RUN groupadd -r realcv && useradd -r -g realcv realcv
|
||||
|
||||
# Copy published app
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
# Set ownership
|
||||
RUN chown -R truecv:truecv /app
|
||||
RUN chown -R realcv:realcv /app
|
||||
|
||||
# Switch to non-root user
|
||||
USER truecv
|
||||
USER realcv
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
@@ -51,4 +51,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:8080/health || exit 1
|
||||
|
||||
# Start the app
|
||||
ENTRYPOINT ["dotnet", "TrueCV.Web.dll"]
|
||||
ENTRYPOINT ["dotnet", "RealCV.Web.dll"]
|
||||
|
||||
Reference in New Issue
Block a user