Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
FROM centos:7
FROM centos:8

ARG USER_ID=14
ARG GROUP_ID=50

MAINTAINER Fer Uria <[email protected]>
LABEL Description="vsftpd Docker image based on Centos 7. Supports passive mode and virtual users." \
LABEL Description="vsftpd Docker image based on Centos 8. Supports passive mode and virtual users." \
License="Apache License 2.0" \
Usage="docker run -d -p [HOST PORT NUMBER]:21 -v [HOST FTP HOME]:/home/vsftpd fauria/vsftpd" \
Version="1.0"

RUN yum -y update && yum clean all
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not needed to update repositories. The image will be ~100MB lighter

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to have the latest updates, but that's not really the focus of this PR.

RUN yum install -y \
vsftpd \
db4-utils \
db4 \
iproute && yum clean all

RUN usermod -u ${USER_ID} ftp
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

This Docker container implements a vsftpd server, with the following features:

* Centos 7 base image.
* Centos 8 base image.
* vsftpd 3.0
* Virtual users
* Passive mode
Expand Down