rhoitjadhav commited on
Commit
bf0d42a
·
1 Parent(s): 5e42df4

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -5
Dockerfile CHANGED
@@ -3,8 +3,11 @@ FROM ubuntu:20.04
3
  # Exposing ports
4
  EXPOSE 6900
5
 
 
 
 
6
  # Environment variables
7
- ENV ARGILLA_LOCAL_AUTH_USERS_DB_FILE=/users.yml
8
  ENV UVICORN_PORT=6900
9
 
10
  # Install Python
@@ -23,9 +26,12 @@ RUN apt update
23
  RUN apt -y install elasticsearch
24
 
25
  # Copy users db file along with execution script
26
- COPY users.yml /
27
- COPY start.sh /
28
- RUN chmod +x /start.sh
 
 
 
29
 
30
  # Executing argilla along with elasticsearch
31
- CMD /bin/bash /start.sh
 
3
  # Exposing ports
4
  EXPOSE 6900
5
 
6
+ # Working Directory
7
+ WORKDIR /app
8
+
9
  # Environment variables
10
+ ENV ARGILLA_LOCAL_AUTH_USERS_DB_FILE=/app/users.yml
11
  ENV UVICORN_PORT=6900
12
 
13
  # Install Python
 
26
  RUN apt -y install elasticsearch
27
 
28
  # Copy users db file along with execution script
29
+ COPY users.yml /app
30
+ COPY start.sh /app
31
+ RUN chmod +x /app/start.sh
32
+
33
+ # Permissions
34
+ RUN chmod -R 777 /app
35
 
36
  # Executing argilla along with elasticsearch
37
+ CMD /bin/bash /app/start.sh