2023-11-27 04:24:47 -05:00
|
|
|
# Use the official Python image
|
|
|
|
FROM python:3.11
|
|
|
|
|
|
|
|
# Expose the specified port
|
|
|
|
EXPOSE 12000
|
|
|
|
|
|
|
|
# Create and set the working directory
|
2023-11-27 14:19:19 -05:00
|
|
|
WORKDIR /client
|
2023-11-27 04:24:47 -05:00
|
|
|
|
2023-11-27 14:19:19 -05:00
|
|
|
# Copy the local client to the container
|
|
|
|
RUN mkdir /client_directory
|
2023-12-06 17:30:12 -05:00
|
|
|
|
|
|
|
# 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
|
2023-11-27 04:24:47 -05:00
|
|
|
|
|
|
|
# Start your Python application
|
|
|
|
#CMD python client.py --debug 1
|