Skip to content

Commit

Permalink
[add] Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bassamadnan committed Aug 17, 2024
1 parent f9c27a3 commit 2b34590
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM python:3.10.12-slim

WORKDIR /app

RUN apt-get update && apt-get install -y \
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*

COPY . /app

RUN chmod +x run.sh

RUN pip install --no-cache-dir -r requirements.txt
RUN pip uninstall uvcorn
RUN mkdir ../images

EXPOSE 8000

ENV WORKERS=1

CMD ["./run.sh"]

0 comments on commit 2b34590

Please sign in to comment.