wesslen commited on
Commit
044fb3f
1 Parent(s): f40ca51

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -13
Dockerfile CHANGED
@@ -3,19 +3,6 @@ FROM python:3.9
3
  #COPY requirements.txt /app/
4
  WORKDIR /app
5
 
6
- RUN --mount=type=secret,id=LICENSE_KEY,mode=0444,required=true \
7
- pip install --upgrade pip \
8
- && pip install prodigy -f https://$(cat /run/secrets/LICENSE_KEY)@download.prodi.gy
9
- # && pip install --trusted-host pypi.python.org -r requirements.txt
10
- # COPY wheel/prodigy-xxx-linux_x86_64.whl ./wheel/
11
- # RUN pip install wheel/prodigy-xxx-linux_x86_64.whl \
12
- # && rm -rf wheel/prodigy-xxx-linux_x86_64.whl
13
- RUN python -m spacy download en_core_web_sm
14
-
15
- COPY prodigy.json .
16
- COPY prodigy.db .
17
- COPY data ./data/
18
-
19
  # Set up a new user named "user" with user ID 1000
20
  RUN useradd -m -u 1000 user
21
  # Switch to the "user" user
@@ -30,6 +17,19 @@ WORKDIR $HOME/app
30
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
31
  COPY --chown=user . $HOME/app
32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  ENV PRODIGY_HOME /app
34
  ENV PRODIGY_LOGGING "verbose"
35
  ENV PRODIGY_ALLOWED_SESSIONS "user1,user2"
 
3
  #COPY requirements.txt /app/
4
  WORKDIR /app
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  # Set up a new user named "user" with user ID 1000
7
  RUN useradd -m -u 1000 user
8
  # Switch to the "user" user
 
17
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
18
  COPY --chown=user . $HOME/app
19
 
20
+ RUN --mount=type=secret,id=LICENSE_KEY,mode=0444,required=true \
21
+ pip install --upgrade pip \
22
+ && pip install prodigy -f https://$(cat /run/secrets/LICENSE_KEY)@download.prodi.gy
23
+ # && pip install --trusted-host pypi.python.org -r requirements.txt
24
+ # COPY wheel/prodigy-xxx-linux_x86_64.whl ./wheel/
25
+ # RUN pip install wheel/prodigy-xxx-linux_x86_64.whl \
26
+ # && rm -rf wheel/prodigy-xxx-linux_x86_64.whl
27
+ RUN python -m spacy download en_core_web_sm
28
+
29
+ # COPY prodigy.json .
30
+ # COPY prodigy.db .
31
+ # COPY data ./data/
32
+
33
  ENV PRODIGY_HOME /app
34
  ENV PRODIGY_LOGGING "verbose"
35
  ENV PRODIGY_ALLOWED_SESSIONS "user1,user2"