Skip to content

Commit

Permalink
allow docker to set platform
Browse files Browse the repository at this point in the history
  • Loading branch information
srkirkland committed Jan 23, 2025
1 parent 6bd77bb commit f3a69b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Process OSRM data
FROM --platform=linux/amd64 node:18-slim AS osrm-processor
FROM node:18-slim AS osrm-processor
WORKDIR /app
COPY package*.json ./
COPY forestry.lua ./
Expand All @@ -14,7 +14,7 @@ RUN node_modules/@project-osrm/osrm/lib/binding/osrm-contract data/california-la
RUN rm data/california-latest.osm.pbf

# Stage 2: Build and run application
FROM --platform=linux/amd64 node:18-slim
FROM node:18-slim
WORKDIR /app
COPY package*.json ./
RUN npm ci
Expand Down

0 comments on commit f3a69b7

Please # to comment.