CentOS 7 Docker devel env
FROM centos:7.8.2003
RUN yum -y update && \
yum -y install g++ ...
...
RUN useradd -m -s /bin/bash devel
USER devel
WORKDIR /home/devel
- build with
docker build -t lbibcell/devel_env .
- run with
docker run --rm -ti --name devel_env -v $PWD/repo:/home/devel/repo:cached lbibcell/devel_env bash
- connect vscode: https://code.visualstudio.com/docs/remote/containers