Skip to content

Commit

Permalink
Reduce dependencies needed for the Dockerfile (#65)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Jun 7, 2024
1 parent e32584d commit bcba28a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@ RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata

# Tools to compile:
RUN apt install -y build-essential cmake clang-format shellcheck curl
RUN apt install -y build-essential cmake

COPY cmake /compile/cmake
COPY src /compile/src
COPY test /compile/test
COPY vendor /compile/vendor
COPY CMakeLists.txt /compile/CMakeLists.txt
COPY Makefile /compile/Makefile
WORKDIR /compile

RUN make configure
RUN make compile
RUN cmake -S . -B ./build -DCMAKE_BUILD_TYPE:STRING=Release -DBUILD_SHARED_LIBS:BOOL=OFF
RUN cmake --build ./build --config Release --parallel 4
RUN cmake --install ./build --prefix /usr/local --config Release --verbose --component intelligence_jsonschema

FROM ubuntu
COPY --from=compiler /compile/build/dist/bin/jsonschema /usr/local/bin/jsonschema
COPY --from=compiler /usr/local/bin/jsonschema /usr/local/bin/jsonschema
WORKDIR /schema
ENTRYPOINT ["/usr/local/bin/jsonschema"]

0 comments on commit bcba28a

Please sign in to comment.