Skip to content

Commit 329a3ce

Browse files
fix: rename KML file to remove spaces for Docker COPY compatibility
Docker COPY cannot handle filenames with spaces in quoted paths. Renamed 'Kml Military bases.kml' to 'military-bases.kml' and updated Dockerfile and militarybases.ts to match. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eeaba0f commit 329a3ce

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ COPY --from=builder /app/client/dist ./public
4949
COPY --from=builder /app/server/src/news_feeds.json ./
5050

5151
# Copy static data files
52-
COPY --from=builder "/app/server/src/Data/Kml Military bases.kml" "./Data/Kml Military bases.kml"
52+
COPY --from=builder /app/server/src/Data/military-bases.kml ./Data/military-bases.kml
5353
RUN mkdir -p ./Data
5454

5555
# 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/military-bases.kml');
4141
const xml = fs.readFileSync(filePath, 'utf-8');
4242

4343
type Ev =

0 commit comments

Comments
 (0)