MyFTP/Dockerfile.server

18 lines
504 B
Docker
Raw Normal View History

# 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
# these files is only 750 bytes
RUN dd if=/dev/urandom of=/server_directory/file_server.txt bs=1 count=750
RUN dd if=/dev/urandom of=/server_directory/image_server.png bs=1 count=750
# Start your Python application
#CMD python server.py --port_number 12000 --debug 1