From e8618a07d021f940c669710982fe37d91bdf59e3 Mon Sep 17 00:00:00 2001 From: allenmylath Date: Mon, 14 Oct 2024 11:49:35 +0530 Subject: [PATCH] Create Dockerfile there is Dockerfile in other examples. this docker file assumes that there is a .env file(i added env.example in another pull request) --- examples/websocket-server/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/websocket-server/Dockerfile diff --git a/examples/websocket-server/Dockerfile b/examples/websocket-server/Dockerfile new file mode 100644 index 000000000..0610ab7f8 --- /dev/null +++ b/examples/websocket-server/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.10-bullseye + +RUN mkdir /app + +COPY *.py /app/ +COPY requirements.txt /app/ +COPY .env /app/ + +WORKDIR /app + +RUN pip3 install -r requirements.txt + +EXPOSE 7860 + +CMD ["python3", "bot.py"]