maputnik/Dockerfile

23 lines
565 B
Docker
Raw Permalink Normal View History

2023-10-22 22:11:06 +02:00
FROM node:18 as builder
WORKDIR /maputnik
2019-02-27 13:50:27 +01:00
# Only copy package.json to prevent npm install from running on every build
COPY package.json package-lock.json ./
RUN npm install
# Build maputnik
# TODO: we should also do a npm run test here (needs more dependencies)
COPY . .
RUN npm run build
#---------------------------------------------------------------------------
# Create a clean python-based image with just the build results
FROM python:3-slim
WORKDIR /maputnik
COPY --from=builder /maputnik/build/build .
EXPOSE 8888
CMD python -m http.server 8888