mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
1. Changed references to point to this new repo 2. Fixed docker image publishing to point to ghcr.io. 3. Remove survey link - the survey is closed and there's no point in keeping it. 4. Remove storybook - Basically a storybook is the ability to look at components and see how they look and interact with them. It's a powerful tool for developing component library with "live" documentation. But it's an overkill for this project and I would like to reduce maintenance costs. Currently all the "stories" are in javascript and not in typescript and it feels like a waste of time to try and maintain it, along with updating the storybook library itself and everything around it.
17 lines
449 B
Docker
17 lines
449 B
Docker
FROM node:18 as builder
|
|
WORKDIR /maputnik
|
|
|
|
# Only copy package.json to prevent npm install from running on every build
|
|
COPY package.json package-lock.json ./
|
|
RUN npm install
|
|
|
|
# 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/
|