setup-cpp/dev/docker/examples/fedora-llvm.dockerfile

17 lines
426 B
Plaintext
Raw Normal View History

#### Building (example)
2024-03-24 15:33:04 +08:00
FROM aminya/setup-cpp-fedora-llvm AS builder
COPY ./dev/cpp_vcpkg_project /home/app
WORKDIR /home/app
RUN bash -c 'source ~/.cpprc \
&& task build'
#### Running environment
# use a fresh image as the runner
2024-04-03 15:15:43 +08:00
FROM fedora:40 AS runner
# copy the built binaries and their runtime dependencies
COPY --from=builder /home/app/build/my_exe/Release/ /home/app/
WORKDIR /home/app/
ENTRYPOINT ["./my_exe"]