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 610 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
25
26
27
28
  1. FROM python:3.8
  2. RUN apt-get update && apt-get install -y --no-install-recommends \
  3. libgl1-mesa-glx
  4. RUN python -m pip install --upgrade pip
  5. WORKDIR /tmp
  6. COPY webserver/requirements.txt .
  7. ENV PYTHONUNBUFFERED=True \
  8. PORT=${PORT:-9090} \
  9. PIP_CACHE_DIR=/.cache
  10. RUN --mount=type=cache,target=$PIP_CACHE_DIR \
  11. pip install -r requirements.txt
  12. COPY webserver/uwsgi.ini /etc/uwsgi/
  13. COPY webserver/supervisord.conf /etc/supervisor/conf.d/
  14. WORKDIR /app
  15. COPY webserver/*.py /app/
  16. COPY *.py /app/
  17. EXPOSE 9090
  18. 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...