Shinhati2023 commited on
Commit
e01c5a8
·
verified ·
1 Parent(s): a540e88

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+ RUN useradd -m -u 1000 user
3
+ USER user
4
+ ENV PATH="/home/user/.local/bin:$PATH"
5
+ WORKDIR /home/user/app
6
+ COPY --chown=user requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+ COPY --chown=user . .
9
+ CMD ["python", "bot.py"]