Juna190825 commited on
Commit
e4b3e29
·
verified ·
1 Parent(s): 605fb01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
9
  openjdk-21-jre-headless \
10
  python3 \
11
  python3-pip \
 
12
  bash \
13
  && rm -rf /var/lib/apt/lists/*
14
 
@@ -17,7 +18,13 @@ COPY --from=conllu /usr/src/ConlluEditor /usr/src/ConlluEditor
17
 
18
  # Copy proxy + upload server
19
  COPY proxy /proxy
20
- RUN pip3 install --no-cache-dir -r /proxy/requirements.txt
 
 
 
 
 
 
21
 
22
  # Persistent storage
23
  VOLUME /data
 
9
  openjdk-21-jre-headless \
10
  python3 \
11
  python3-pip \
12
+ python3-venv \
13
  bash \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
18
 
19
  # Copy proxy + upload server
20
  COPY proxy /proxy
21
+
22
+ # Create a virtual environment for Python
23
+ RUN python3 -m venv /opt/venv
24
+ ENV PATH="/opt/venv/bin:$PATH"
25
+
26
+ # Install Python dependencies inside the venv
27
+ RUN pip install --no-cache-dir -r /proxy/requirements.txt
28
 
29
  # Persistent storage
30
  VOLUME /data