-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (22 loc) · 945 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:18.04
MAINTAINER [email protected]
# Create the log file to be able to && tail
RUN apt-get update \
&& apt -y install curl wget apt-transport-https netcat ssh samba \
&& wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
&& dpkg -i packages-microsoft-prod.deb \
&& apt update \
&& apt install -y powershell \
&& mkdir /opt/confidential \
&& chmod 777 -R /opt/confidential \
&& echo "[pci]" >> /etc/samba/smb.conf \
&& echo " comment = Emulated Windows Share" >> /etc/samba/smb.conf \
&& echo " path = /opt/confidential" >> /etc/samba/smb.conf \
&& echo " read only = no" >> /etc/samba/smb.conf \
&& echo " browsable = yes" >> /etc/samba/smb.conf \
&& echo " guest ok = yes" >> /etc/samba/smb.conf
COPY ./sensitive_data.csv /opt/confidential
EXPOSE 139
EXPOSE 445
STOPSIGNAL SIGTERM
CMD /usr/sbin/smbd -F -s /etc/samba/smb.conf < /dev/null