-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 819 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM debian:trixie AS builder
RUN apt-get --yes update && apt-get install --yes --no-install-recommends \
build-essential cmake && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY cmake /source/cmake
COPY src /source/src
COPY completion /source/completion
COPY vendor /source/vendor
COPY CMakeLists.txt /source/CMakeLists.txt
COPY VERSION /source/VERSION
RUN cmake -S /source -B ./build \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DJSONSCHEMA_PORTABLE:BOOL=ON
RUN cmake --build /build --config Release --parallel 4
RUN cmake --install /build --prefix /usr/local --config Release --verbose --component sourcemeta_jsonschema
FROM debian:trixie-slim
COPY --from=builder /usr/local/bin/jsonschema /usr/local/bin/jsonschema
WORKDIR /workspace
ENTRYPOINT [ "/usr/local/bin/jsonschema" ]