mjuvilla commited on
Commit
7a3ec05
·
1 Parent(s): 97b709d
Files changed (1) hide show
  1. Dockerfile +11 -11
Dockerfile CHANGED
@@ -1,18 +1,7 @@
1
  FROM python:3.12-slim
2
 
3
- RUN useradd -m appuser
4
- USER appuser
5
-
6
  WORKDIR /app
7
 
8
- RUN chown -R appuser:appuser /app
9
-
10
- COPY fast_align_config ./fast_align_config
11
- COPY src ./src
12
- COPY gradio_app.py .
13
- COPY requirements.txt .
14
- run mkdir /app/tmp
15
-
16
  RUN apt-get update && \
17
  apt-get install -y libgomp1 openjdk-17-jre-headless wget unzip libgoogle-perftools-dev libsparsehash-dev git cmake build-essential
18
 
@@ -35,4 +24,15 @@ RUN unzip okapi-apps_gtk2-linux-x86_64_1.47.0.zip -d okapi-apps_gtk2-linux-x86_6
35
  RUN pip install -r requirements.txt
36
  RUN python -m spacy download xx_ent_wiki_sm
37
 
 
 
 
 
 
 
 
 
 
 
 
38
  CMD ["python", "gradio_app.py"]
 
1
  FROM python:3.12-slim
2
 
 
 
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  RUN apt-get update && \
6
  apt-get install -y libgomp1 openjdk-17-jre-headless wget unzip libgoogle-perftools-dev libsparsehash-dev git cmake build-essential
7
 
 
24
  RUN pip install -r requirements.txt
25
  RUN python -m spacy download xx_ent_wiki_sm
26
 
27
+ RUN useradd -m appuser
28
+ USER appuser
29
+
30
+ RUN chown -R appuser:appuser /app
31
+
32
+ COPY fast_align_config ./fast_align_config
33
+ COPY src ./src
34
+ COPY gradio_app.py .
35
+ COPY requirements.txt .
36
+ run mkdir /app/tmp
37
+
38
  CMD ["python", "gradio_app.py"]