15 lines
268 B
Docker
15 lines
268 B
Docker
# Use a base Python image
|
|
FROM registry.suse.com/bci/python:3.11
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the server script
|
|
COPY server.py .
|
|
|
|
# Expose the port the server will run on
|
|
EXPOSE 8080
|
|
|
|
# Command to run the server
|
|
CMD ["python3", "-u", "server.py"]
|