-
Notifications
You must be signed in to change notification settings - Fork 906
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 1.24 KB
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ARG VARIANT=debian13
FROM mcr.microsoft.com/devcontainers/base:${VARIANT}
USER root
# Install needed packages. Use a separate RUN statement to add your own dependencies.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install build-essential cmake cppcheck valgrind clang lldb llvm gdb \
# [Optional] Additional packages required for using vcpkg package manager in manifest mode.
# [Optional] Please uncommment if the below line in needed.
# && apt-get -y install autoconf automake libtool m4 autoconf-archive \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
# Setup ENV vars for vcpkg
ENV VCPKG_ROOT=/usr/local/vcpkg \
VCPKG_DOWNLOADS=/usr/local/vcpkg-downloads
ENV PATH="${PATH}:${VCPKG_ROOT}"
ARG USERNAME=vscode
# Install vcpkg itself: https://github.com/microsoft/vcpkg/blob/master/README.md#quick-start-unix
COPY base-scripts/install-vcpkg.sh /tmp/
RUN chmod +x /tmp/install-vcpkg.sh \
&& ./tmp/install-vcpkg.sh ${USERNAME} \
&& rm -f /tmp/install-vcpkg.sh
# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>