YanSte commited on
Commit
8aaf661
·
1 Parent(s): c436684

[Project] Fix data

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -10
Dockerfile CHANGED
@@ -48,7 +48,7 @@ ENV PYTHONUNBUFFERED=1 \
48
  # NLTK
49
  NLTK_DATA="/home/user/nltk/" \
50
  # Store files
51
- DATA_DIR="/app/api/data/" \
52
  # Set the custom Poetry configuration directory
53
  POETRY_CONFIG_DIR="$POETRY_HOME/.config/pypoetry" \
54
  # Crypt
@@ -80,9 +80,16 @@ RUN apt-get update \
80
  && rm -rf /var/lib/apt/lists/*
81
 
82
 
83
-
84
  WORKDIR /
85
 
 
 
 
 
 
 
 
 
86
  ### ------
87
  ### Create DIRs
88
  ### ------
@@ -99,14 +106,6 @@ chown -R user:user $NLTK_DATA && \
99
  chown -R user:user $DATA_DIR && \
100
  chmod -R 777 $DATA_DIR
101
 
102
- ### ------
103
- ### Copy from Repo
104
- ### ------
105
-
106
- RUN --mount=type=secret,id=TAG,mode=0444,required=true \
107
- --mount=type=secret,id=URL,mode=0444,required=true \
108
- git clone --branch $(cat /run/secrets/TAG) $(cat /run/secrets/URL) /api
109
-
110
  ### ------
111
  ### Install Libs
112
  ### ------
 
48
  # NLTK
49
  NLTK_DATA="/home/user/nltk/" \
50
  # Store files
51
+ DATA_DIR="/api/data/" \
52
  # Set the custom Poetry configuration directory
53
  POETRY_CONFIG_DIR="$POETRY_HOME/.config/pypoetry" \
54
  # Crypt
 
80
  && rm -rf /var/lib/apt/lists/*
81
 
82
 
 
83
  WORKDIR /
84
 
85
+ ### ------
86
+ ### Copy from Repo
87
+ ### ------
88
+
89
+ RUN --mount=type=secret,id=TAG,mode=0444,required=true \
90
+ --mount=type=secret,id=URL,mode=0444,required=true \
91
+ git clone --branch $(cat /run/secrets/TAG) $(cat /run/secrets/URL) /api
92
+
93
  ### ------
94
  ### Create DIRs
95
  ### ------
 
106
  chown -R user:user $DATA_DIR && \
107
  chmod -R 777 $DATA_DIR
108
 
 
 
 
 
 
 
 
 
109
  ### ------
110
  ### Install Libs
111
  ### ------