- Files size should be around 750 bytes or less - Regenerate test files in docker and in `client_directory` & `server_directory` folders - Abstract the client and server: UDPClient -> Client
19 lines
465 B
Docker
19 lines
465 B
Docker
# Use the official Python image
|
|
FROM python:3.11
|
|
|
|
# Expose the specified port
|
|
EXPOSE 12000
|
|
|
|
# Create and set the working directory
|
|
WORKDIR /client
|
|
|
|
# Copy the local client to the container
|
|
RUN mkdir /client_directory
|
|
|
|
# these files is only 750 bytes
|
|
RUN dd if=/dev/urandom of=/client_directory/file_local.txt bs=1 count=750
|
|
RUN dd if=/dev/urandom of=/client_directory/image_local.png bs=1 count=750
|
|
|
|
# Start your Python application
|
|
#CMD python client.py --debug 1
|