Harry2687 commited on
Commit
4b040e4
·
1 Parent(s): 59e2ba3

added dockerfile

Browse files
Files changed (2) hide show
  1. .dockerignore +3 -0
  2. Dockerfile +17 -0
.dockerignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ *.git
2
+ **/__pycache__
3
+ venv
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12.8-slim
2
+
3
+ ENV PYTHONUNBUFFERED=1 \
4
+ PIP_NO_CACHE_DIR=1
5
+
6
+ WORKDIR /gender-prediction
7
+
8
+ COPY requirements.txt .
9
+
10
+ RUN pip install --upgrade pip \
11
+ && pip install -r requirements.txt
12
+
13
+ COPY . .
14
+
15
+ EXPOSE 3000
16
+
17
+ CMD ["shiny", "run", "shinyapp/app.py", "-h", "0.0.0.0", "-p", "3000"]