mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 06:10:00 +00:00
## Launch Checklist This PR uses the maputnik CLI inside the docker container to allow loading of files into the container and watch for changes. - [x] Briefly describe the changes in this PR. - [x] Write tests for all new functionality. - [x] Add an entry to `CHANGELOG.md` under the `## main` section. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
15 lines
314 B
Docker
15 lines
314 B
Docker
FROM golang:1.23-alpine AS builder
|
|
WORKDIR /maputnik
|
|
|
|
RUN apk add --no-cache nodejs npm make git gcc g++ libc-dev
|
|
|
|
# Build maputnik
|
|
COPY . .
|
|
RUN npm ci
|
|
RUN CGO_ENABLED=1 GOOS=linux npm run build-linux
|
|
|
|
FROM alpine:latest
|
|
WORKDIR /app
|
|
COPY --from=builder /maputnik/desktop/bin/linux ./
|
|
ENTRYPOINT ["/app/maputnik"]
|