Skip to content

Commit eeaba0f

Browse files
fix: copy KML file into Docker image and fix military bases path
- Add COPY for 'Kml Military bases.kml' to /app/Data/ in Dockerfile - Fix path in militarybases.ts: __dirname is dist/core/source so needs 3x .. to reach /app/Data, not 2x (which gave /app/dist/Data) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c2d44f7 commit eeaba0f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ COPY --from=builder /app/client/dist ./public
4848
# Copy server source files that might be needed at runtime
4949
COPY --from=builder /app/server/src/news_feeds.json ./
5050

51-
# Create Data directory for aircraft database
52-
# Note: The parquet file is large (~150MB) and not included in git
53-
# The server will download/generate it at runtime if needed
51+
# Copy static data files
52+
COPY --from=builder "/app/server/src/Data/Kml Military bases.kml" "./Data/Kml Military bases.kml"
5453
RUN mkdir -p ./Data
5554

5655
# Expose port

server/src/core/source/militarybases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function styleToCategory(styleUrl: string): BaseCategory {
3737
export function getMilitaryBasesGeoJSON(): FeatureCollection {
3838
if (_cache) return _cache;
3939

40-
const filePath = path.join(__dirname, '../../Data/Kml Military bases.kml');
40+
const filePath = path.join(__dirname, '../../../Data/Kml Military bases.kml');
4141
const xml = fs.readFileSync(filePath, 'utf-8');
4242

4343
type Ev =

0 commit comments

Comments
 (0)