mirror of
https://github.com/The-Pocket/PocketFlow-Tutorial-Codebase-Knowledge.git
synced 2026-08-29 08:34:31 +08:00
docker updated
This commit is contained in:
+4
-2
@@ -1,11 +1,13 @@
|
||||
FROM python:3.10-slim
|
||||
|
||||
# update packages, install git and remove cache
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
CMD ["python"]
|
||||
ENTRYPOINT ["python", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user