Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 490 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. FROM python:3.10.5
  2. WORKDIR /tmp
  3. COPY requirements.txt .
  4. ENV PYTHONUNBUFFERED=True \
  5. PORT=${PORT:-9090} \
  6. PIP_CACHE_DIR=/.cache
  7. RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
  8. RUN --mount=type=cache,target=$PIP_CACHE_DIR \
  9. pip install -r requirements.txt
  10. COPY uwsgi.ini /etc/uwsgi/
  11. COPY supervisord.conf /etc/supervisor/conf.d/
  12. WORKDIR /app
  13. COPY *.py /app/
  14. EXPOSE 9090
  15. CMD ["/usr/local/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...