mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
Resolves #842 Better suited than python + handles sigterm better Co-authored-by: Harel M <harel.mazor@gmail.com>
17 lines
448 B
Docker
17 lines
448 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 npm run 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/
|