mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
Cleanup after install
This commit is contained in:
parent
2505784452
commit
956f0cdf8f
1 changed files with 7 additions and 2 deletions
|
@ -1,10 +1,15 @@
|
||||||
FROM debian:wheezy
|
FROM debian:wheezy
|
||||||
MAINTAINER Adrian Dvergsdal
|
MAINTAINER Adrian Dvergsdal [atmoz.net]
|
||||||
|
|
||||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server
|
# Install SSH
|
||||||
|
RUN apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# sshd needs this directory to run
|
||||||
RUN mkdir -p /var/run/sshd
|
RUN mkdir -p /var/run/sshd
|
||||||
|
|
||||||
|
# Add configuration and run script
|
||||||
ADD . /root
|
ADD . /root
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN mv sshd_config /etc/ssh/sshd_config
|
RUN mv sshd_config /etc/ssh/sshd_config
|
||||||
|
|
Loading…
Reference in a new issue