version 1.1
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
FROM alpine:3.3
|
||||
|
||||
MAINTAINER Alexis Manin <alexis.manin@geomatys.com>
|
||||
|
||||
# fix locale
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LANGUAGE en_US:en
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
# Install needed programs
|
||||
RUN apk update
|
||||
RUN apk add vsftpd
|
||||
RUN apk add supervisor
|
||||
|
||||
# Configure FTP service
|
||||
ADD vsftpd.conf /etc/
|
||||
|
||||
# Supervisor configuration
|
||||
ADD supervisord.conf /etc/
|
||||
|
||||
RUN mkdir -p /var/rhomeo/ftp
|
||||
|
||||
# Configure FTP users
|
||||
RUN addgroup ftpusers
|
||||
|
||||
ADD userpass /tmp/
|
||||
RUN adduser rhomeoftp -G ftpusers -h /var/rhomeo/ftp < /tmp/userpass && rm /tmp/userpass
|
||||
|
||||
VOLUME /var/rhomeo/ftp
|
||||
|
||||
EXPOSE 20 21
|
||||
ENTRYPOINT ["supervisord"]
|
||||
Reference in New Issue
Block a user