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

17 lines
429 B
Plaintext
Raw Permalink Normal View History

#### Building (example)
2024-03-24 15:33:04 +08:00
FROM aminya/setup-cpp-ubuntu-llvm AS builder
2023-01-19 22:02:27 +08:00
COPY ./dev/cpp_vcpkg_project /home/app
WORKDIR /home/app
2022-05-13 10:10:55 +08:00
RUN bash -c 'source ~/.cpprc \
2022-05-15 18:53:26 +08:00
&& task build'
#### Running environment
# use a fresh image as the runner
2024-04-03 15:15:43 +08:00
FROM ubuntu:22.04 AS runner
2023-01-19 22:02:27 +08:00
# 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"]