-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the latest official Ubuntu image
FROM ubuntu:latest
# Set environment variables to avoid some interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
COPY globalrun.sh /globalrun.sh
# Update package lists and install any required software (optional step)
RUN apt-get update && apt-get install -y \
curl php php-sqlite3 python3-pip \
&& apt-get clean && pip3 install pyftpdlib --break-system-package && mkdir -p /nebulaftp && mkdir -p /nebulaftp/root && chmod +x /globalrun.sh
COPY php_webroot/ /nebulaftp/webroot
COPY main.py/ /nebulaftp/main.py
# Expose ports 80 (HTTP) and 21 (FTP)
EXPOSE 80
EXPOSE 21
# Define the default command (optional, modify based on your use case)
CMD ["/globalrun.sh"]