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

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

EXPOSE 22

CMD ["/sbin/init"]