| 1 |
# Copyright The containerd Authors. |
| 2 |
|
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
|
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
|
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
# For details, see https://github.com/devcontainers/images/tree/main/src/base-ubuntu |
| 16 |
FROM mcr.microsoft.com/devcontainers/base:1-ubuntu-22.04 |
| 17 |
|
| 18 |
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ |
| 19 |
&& apt-get -y install --no-install-recommends \ |
| 20 |
gperf \ |
| 21 |
dmsetup \ |
| 22 |
bc \ |
| 23 |
software-properties-common \ |
| 24 |
libseccomp-dev \ |
| 25 |
xfsprogs \ |
| 26 |
lsof \ |
| 27 |
iptables \ |
| 28 |
autoconf \ |
| 29 |
automake \ |
| 30 |
g++ \ |
| 31 |
libtool \ |
| 32 |
acl \ |
| 33 |
&& rm -rf /var/lib/apt/lists/* |
| 34 |
|
| 35 |
RUN add-apt-repository -y ppa:criu/ppa \ |
| 36 |
&& apt-get update \ |
| 37 |
&& apt-get install -y criu \ |
| 38 |
&& rm -rf /var/lib/apt/lists/* |
| 39 |
|
| 40 |
RUN setfacl -PRdm u::rwx,g::rx,o::rx /tmp |
| 41 |
|
| 42 |
COPY .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt |