mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
This unblocks the CI We already use node 22 in the CI most places, I just forgot the Dockerfile, and now that Node 18 is recently EOL it appear to be failing there. ## Launch Checklist <!-- Thanks for the PR! Feel free to add or remove items from the checklist. --> - [X] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Include before/after visuals or gifs if this PR includes visual changes. - [ ] Write tests for all new functionality. - [ ] Add an entry to `CHANGELOG.md` under the `## main` section.
17 lines
451 B
Docker
17 lines
451 B
Docker
FROM node:22 as builder
|
|
WORKDIR /maputnik
|
|
|
|
# Only copy package.json to prevent npm install from running on every build
|
|
COPY package.json package-lock.json .npmrc ./
|
|
RUN npm ci
|
|
|
|
# Build maputnik
|
|
COPY . .
|
|
RUN npx vite build
|
|
|
|
#---------------------------------------------------------------------------
|
|
# Create a clean nginx-alpine slim image with just the build results
|
|
FROM nginx:alpine-slim
|
|
|
|
COPY --from=builder /maputnik/dist /usr/share/nginx/html/
|