AurelioAguirre commited on
Commit
bd89e28
·
1 Parent(s): 36523d3

Fixed Dockerfile v10

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. app/config.yaml +2 -2
Dockerfile CHANGED
@@ -12,8 +12,8 @@ COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Create necessary directories and set permissions
15
- RUN mkdir -p /code/logs /code/hf_cache /code/app/.cache \
16
- && chmod 777 /code/logs /code/hf_cache /code/app/.cache
17
 
18
  # Copy the application code
19
  COPY ./app /code/app
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Create necessary directories and set permissions
15
+ RUN mkdir -p /code/logs /code/hf_cache /code/app/.cache /code/models \
16
+ && chmod 777 /code/logs /code/hf_cache /code/app/.cache /code/models
17
 
18
  # Copy the application code
19
  COPY ./app /code/app
app/config.yaml CHANGED
@@ -3,7 +3,7 @@ server:
3
  port: 8000
4
 
5
  model:
6
- base_path: "/code"
7
  generation:
8
  max_new_tokens: 256
9
  do_sample: true
@@ -14,7 +14,7 @@ model:
14
 
15
  folders:
16
  models: "models"
17
- cache: ".cache"
18
  logs: "logs"
19
 
20
  logging:
 
3
  port: 8000
4
 
5
  model:
6
+ base_path: "."
7
  generation:
8
  max_new_tokens: 256
9
  do_sample: true
 
14
 
15
  folders:
16
  models: "models"
17
+ cache: "app/.cache"
18
  logs: "logs"
19
 
20
  logging: