mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-24 12:59:24 -05:00
Rename run to entrypoint
This commit is contained in:
parent
b6f2320c01
commit
c5ec0cfc3f
2 changed files with 5 additions and 7 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,7 +1,7 @@
|
||||||
FROM debian:wheezy
|
FROM debian:wheezy
|
||||||
MAINTAINER Adrian Dvergsdal [atmoz.net]
|
MAINTAINER Adrian Dvergsdal [atmoz.net]
|
||||||
|
|
||||||
# Install SSH
|
# Install OpenSSH
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
|
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -9,12 +9,10 @@ RUN apt-get update && \
|
||||||
# sshd needs this directory to run
|
# sshd needs this directory to run
|
||||||
RUN mkdir -p /var/run/sshd
|
RUN mkdir -p /var/run/sshd
|
||||||
|
|
||||||
# Add configuration and script
|
# Copy configuration and entrypoint script
|
||||||
ADD . /root
|
COPY sshd_config /etc/ssh/sshd_config
|
||||||
WORKDIR /root
|
COPY entrypoint /
|
||||||
RUN mv sshd_config /etc/ssh/sshd_config && \
|
|
||||||
chmod +x run
|
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
||||||
ENTRYPOINT ["./run"]
|
ENTRYPOINT ["/entrypoint"]
|
||||||
|
|
Loading…
Reference in a new issue