amine-yagoub commited on
Commit
8cf1c77
·
1 Parent(s): 1de0435

build: add Dockerfile for containerized deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ nodejs npm \
7
+ && rm -rf /var/lib/apt/lists/* \
8
+ && npm install -g @getgrit/cli
9
+
10
+ COPY pyproject.toml .
11
+ COPY src/ src/
12
+ COPY assets/ assets/
13
+
14
+ RUN pip install --no-cache-dir -e .
15
+
16
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
17
+ ENV GRADIO_SERVER_PORT="7860"
18
+ EXPOSE 7860
19
+
20
+ CMD ["python", "-m", "code_tribunal.app"]