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)
This commit is contained in:
allenmylath
2024-10-14 11:49:35 +05:30
committed by GitHub
parent c866b3f2c9
commit e8618a07d0

View File

@@ -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"]