-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
27 lines (26 loc) · 1.11 KB
/
Dockerfile
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
# syntax=docker/dockerfile:experimental
FROM ubuntu:18.04
RUN sed -i -e 's/http:\/\/archive\.ubuntu\.com\/ubuntu\//mirror:\/\/mirrors\.ubuntu\.com\/mirrors\.txt/' /etc/apt/sources.list
RUN apt-get update -y
RUN apt-get install -y qemu-kvm
RUN apt-get install -y libvirt-daemon-system
RUN apt-get install -y libvirt-dev
RUN apt-get install -y rsyslog
RUN apt-get install -y curl
RUN apt-get install -y net-tools
RUN apt-get install -y busybox-static
RUN apt-get autoclean
RUN apt-get autoremove
RUN --mount=type=bind,target=/tmp/vagrant_2.2.16_x86_64.deb,source=vagrant_2.2.16_x86_64.deb,rw \
dpkg -i /tmp/vagrant_2.2.16_x86_64.deb
RUN vagrant plugin install vagrant-libvirt
RUN --mount=type=bind,target=/tmp/windows_2019_libvirt.box,source=windows_2019_libvirt.box,rw \
vagrant box add windev /tmp/windows_2019_libvirt.box
RUN vagrant init windev
COPY Vagrantfile /
COPY startup.sh /
RUN apt-get install -y samba
COPY etc/samba/smb.conf /etc/samba/smb.conf
RUN /bin/echo -ne "root\nroot\n" | smbpasswd -a -s root
EXPOSE 445/tcp 139/tcp 138/udp 137/udp 3389/tcp 3389/udp 32022/tcp 5900/tcp 5900/udp
ENTRYPOINT ["/startup.sh"]