14 lines
362 B
Docker
14 lines
362 B
Docker
FROM alpine:latest
|
|
|
|
# Install FTP client and netcat for connection testing
|
|
RUN apk update && apk add --no-cache lftp netcat-openbsd && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
# Copy the FTP script
|
|
COPY ftp_script.sh /usr/local/bin/ftp_script.sh
|
|
|
|
# Make the script executable
|
|
RUN chmod +x /usr/local/bin/ftp_script.sh
|
|
|
|
# Run the script
|
|
CMD ["/usr/local/bin/ftp_script.sh"] |