-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
29 lines (20 loc) · 742 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
24
25
26
27
28
29
FROM debian:wheezy
MAINTAINER Bruno Binet <[email protected]>
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
gnupg reprepro openssh-server
RUN mkdir /var/run/sshd
RUN echo "REPREPRO_BASE_DIR=/data/debian" > /etc/environment
# Configure an reprepro user (admin)
RUN adduser --system --group --shell /bin/bash --uid 600 --disabled-password --no-create-home reprepro
# Configure an apt user (read only)
RUN adduser --system --group --shell /bin/bash --uid 601 --disabled-password --no-create-home apt
ADD sshd_config /sshd_config
ADD run.sh /run.sh
RUN chmod +x /run.sh
ENV REPREPRO_DEFAULT_NAME Reprepro
VOLUME ["/config"]
VOLUME ["/data"]
# sshd
EXPOSE 22
CMD ["/run.sh"]