summaryrefslogtreecommitdiffstats
path: root/ansible/test/images/docker/ubuntu/Dockerfile
blob: 6dd079adb99ab8b3c67de18299413a9bddc8197a (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

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

EXPOSE 22

CMD ["/sbin/init"]