Docker Community Forums

Share and learn in the Docker community.

Create your own docker image

Hello every body,

I am a beginner in dockerWorld.
I need to use docker for my studies. I’m on Mac OS.
i created dockerfile for had csfml lib.

You can watch my dockerFile :

FROM ubuntu:latest

RUN apt-get update

RUN apt-get upgrade -y

RUN apt-get install -y build-essential

RUN apt-get install git

RUN apt-get install -y valgrind

RUN apt-get install libx11-dev

RUN apt-get install xorg-dev

RUN apt-get install freeglut3-dev

RUN apt-get install libudev-dev

RUN apt-get install cmake

RUN git clone https://github.com/SFML/CSFML

RUN cd CSFML

RUN SFML="$(realpath …/SFML)"

RUN cmake -DCMAKE_MODULE_PATH="$SFML/cmake/Modules" .

RUN make

RUN make install

RUN cd …

RUN cp lib/ /usr/lib/CSFML -r

RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/CSFML

can you tell me if all ok and how to run it and use it

Thank You.