Files
SimControl/Dockerfile
2023-08-11 14:03:14 +02:00

42 lines
1.5 KiB
Docker

#build with sudo buildah bud -t gateway:latest .
# Get the base Ubuntu image from Docker Hub
FROM debian:stable
RUN chown -R _apt /var/lib/apt
# Update apps on the base image
RUN apt-get update
RUN apt-get upgrade
# Install the Clang compiler
# RUN apt-get -y install
# install all used libs
RUN apt-get -y install libsodium23 libuuid1 libstdc++5 libcurl4
# copy all custom buld libs
COPY build/libs/EntityLibrary/libs/SimCore/libs/whisper-com/libs/libzmq/lib/libzmq.so.5 /usr/lib/
# COPY build/libs/EntityLibrary/libs/SimCore/libs/whisper-com/libs/protobuf/libprotobuf.so.32 /usr/lib/
COPY build/libs/EntityLibrary/libs/SimCore/libs/whisper-com/libs/protobuf/libprotobufd.so.32 /usr/lib/
COPY build/libs/EntityLibrary/libs/SimCore/libs/geographiclib/src/libGeographicLib.so.23 /usr/lib/
COPY build/libs/EntityLibrary/libs/KubeControl/libs/yaml-cpp/libyaml-cpp.so.0.7 /usr/lib/
COPY build/libs/EntityLibrary/libs/KubeControl/libs/curlpp/libcurlpp.so.1 /usr/lib/
# COPY build/libs/EntityLibrary/libs/SimCore/libs/crossguid/libcrossguid.so.0 /usr/lib/
COPY build/libs/EntityLibrary/libs/SimCore/libs/crossguid/libcrossguid-dgb.so.0 /usr/lib/
# Copy the current folder which contains C++ source code to the Docker image under /usr/src
COPY build/docs/config /usr/local/bin/docs/
COPY build/SimControlApplication /usr/local/bin/
# # Specify the working directory
WORKDIR /usr/local/bin/
# # Use Clang to compile the Test.cpp source file
# RUN clang++ -o Test Test.cpp
# Run the output program from the previous step
CMD ["SimControlApplication"]
# CMD ["bin/bash"]