diff --git a/Dockerfile b/Dockerfile index 8b1aae1..3b98e16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,9 +76,8 @@ RUN npm ci --only=production --workspace=bitip-backend && \ # Copy built artifacts from builder COPY --from=builder /app/dist ./dist -# Copy configuration files needed at runtime -COPY --from=builder /app/ReleaseNotes.json ./ -COPY --from=builder /app/Overview.json ./ +# Copy content files needed at runtime +COPY --from=builder /app/content ./content # Create directory for MaxMind databases RUN mkdir -p /usr/share/maxmind && \ diff --git a/Overview.json b/content/Overview.json similarity index 100% rename from Overview.json rename to content/Overview.json diff --git a/ReleaseNotes.json b/content/ReleaseNotes.json similarity index 100% rename from ReleaseNotes.json rename to content/ReleaseNotes.json diff --git a/src/backend/utils/paths.ts b/src/backend/utils/paths.ts index 123fe9a..65034ad 100644 --- a/src/backend/utils/paths.ts +++ b/src/backend/utils/paths.ts @@ -29,8 +29,8 @@ const resolveFilePath = (...relativePath: string[]): string => { }; const envPath = resolveFilePath('.env'); -const releaseNotesPath = resolveFilePath('ReleaseNotes.json'); -const overviewPath = resolveFilePath('Overview.json'); +const releaseNotesPath = resolveFilePath('content', 'ReleaseNotes.json'); +const overviewPath = resolveFilePath('content', 'Overview.json'); const frontendPrefix = isProduction ? 'dist' : 'src'; const frontendPath = resolveFilePath(frontendPrefix, 'frontend');