forked from xtekky/chatgpt-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (21 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
32 lines (21 loc) · 714 Bytes
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
29
30
31
32
FROM python:3.10.12-slim
LABEL maintainer="Quantum Leap Labs Ltd."
ENV PYTHONUNBUFFERED 1
COPY ./requirements.txt /tmp/requirements.txt
WORKDIR /app
# Install system dependencies
# RUN apt-get update && \
# apt-get install -y --no-install-recommends build-essential libgl1-mesa-glx && \
# rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends libgl1
# Create virtual environment and install python dependencies
RUN python -m venv /venv && \
/venv/bin/pip install --upgrade pip && \
/venv/bin/pip install -r /tmp/requirements.txt && \
rm -rf /tmp
COPY . .
ENV BUILD_ENV=PROD
ENV PATH="/venv/bin:$PATH"
EXPOSE 5001
CMD ["python", "run.py"]