Compare commits

...

2 Commits

Author SHA1 Message Date
Harel M ec96f451a9 Merge branch 'main' into nginx 2023-12-26 23:21:47 +02:00
Maxence e8a62b4355 Use nginx to serve built files 2023-04-21 16:16:03 -04:00
+3 -9
View File
@@ -6,17 +6,11 @@ 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 nginx-alpine slim image with just the build results
FROM nginx:alpine-slim
# Create a clean python-based image with just the build results
FROM python:3-slim
WORKDIR /maputnik
COPY --from=builder /maputnik/dist .
EXPOSE 8888
CMD python -m http.server 8888
COPY --from=builder /maputnik/dist /usr/share/nginx/html/