mirror of
https://github.com/maputnik/editor.git
synced 2026-09-01 01:47:26 +00:00
Compare commits
2 Commits
gh-pages
...
ec96f451a9
| Author | SHA1 | Date | |
|---|---|---|---|
| ec96f451a9 | |||
| e8a62b4355 |
+3
-9
@@ -6,17 +6,11 @@ COPY package.json package-lock.json ./
|
|||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Build maputnik
|
# Build maputnik
|
||||||
# TODO: we should also do a npm run test here (needs more dependencies)
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
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
|
COPY --from=builder /maputnik/dist /usr/share/nginx/html/
|
||||||
FROM python:3-slim
|
|
||||||
WORKDIR /maputnik
|
|
||||||
|
|
||||||
COPY --from=builder /maputnik/dist .
|
|
||||||
|
|
||||||
EXPOSE 8888
|
|
||||||
CMD python -m http.server 8888
|
|
||||||
|
|||||||
Reference in New Issue
Block a user