summaryrefslogtreecommitdiffstats
path: root/ansible/test/images/docker/ubuntu/Dockerfile
blob: be9e19cf1d4582371fbe8fe9d64b656ba6cecd66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ARG RELEASE
FROM ubuntu:${RELEASE}

# Systemd requires this env for ConditionVirtualization setting in unit files
ENV container docker

# Install necessary packages
RUN apt-get update && apt-get -y install dbus systemd openssh-server iproute2 python3-docker python3-apt

# Create symlink python3 -> python
RUN ln -s /usr/bin/python3 /usr/bin/python

EXPOSE 22

CMD ["/sbin/init"]