Upload files to "/"
This commit is contained in:
commit
49de22d788
5 changed files with 432 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM python:3.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt && \
|
||||
find /usr/local -name '__pycache__' -type d -exec rm -rf {} +
|
||||
|
||||
COPY app.py .
|
||||
RUN mkdir -p /data
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue