File: Dockerfile

package info (click to toggle)
archvsync 20180513
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 244 kB
  • sloc: sh: 883; makefile: 80
file content (25 lines) | stat: -rw-r--r-- 616 bytes parent folder | download
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
FROM       debian:stable
MAINTAINER Paul Tagliamonte <paultag@debian.org>

RUN apt-get update && apt-get install -y \
    adduser \
    git \
    rsync

RUN adduser \
    --system \
    --home=/opt/ftp-master.debian.org/archvsync/ \
    --shell=/bin/bash \
    --no-create-home \
    --group \
    archvsync

RUN mkdir -p /opt/ftp-master.debian.org/
WORKDIR /opt/ftp-master.debian.org/
RUN git clone https://ftp-master.debian.org/git/archvsync.git/
RUN chown -R archvsync:archvsync ./archvsync
WORKDIR /opt/ftp-master.debian.org/archvsync/

ENV PATH /opt/ftp-master.debian.org/archvsync/bin:${PATH}

CMD ["ftpsync"]