Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -32,6 +32,11 @@ RUN pip3 install --upgrade pip && pip3 install --no-cache-dir -q -r requirements
|
|
32 |
# Copy code to container
|
33 |
COPY app /app
|
34 |
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# Expose port 5000
|
37 |
EXPOSE 5000
|
|
|
32 |
# Copy code to container
|
33 |
COPY app /app
|
34 |
|
35 |
+
# Give container write permission to sqlite db
|
36 |
+
RUN sudo chmod 774 /app/dataset/ihsg.db
|
37 |
+
|
38 |
+
# Update database
|
39 |
+
RUN python3 update_database.py
|
40 |
|
41 |
# Expose port 5000
|
42 |
EXPOSE 5000
|