MyFTP/Dockerfile.server
minhtrannhat d1d5321784
feat: Testing environment
- both server and client must specify their directories
2023-11-27 14:19:19 -05:00

17 lines
476 B
Docker

# Use the official Python image
FROM python:3.11
# Expose the specified port
EXPOSE 12000
# Create and set the working directory
WORKDIR /server
# Create files with random content in the /server directory
RUN mkdir /server_directory
RUN dd if=/dev/urandom of=/server_directory/file_server.txt bs=1024 count=10
RUN dd if=/dev/urandom of=/server_directory/image_server.png bs=1024 count=50
# Start your Python application
#CMD python server.py --port_number 12000 --debug 1