asblr commited on
Commit
5d52253
·
verified ·
1 Parent(s): e4cfe7d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Metabase image
2
+ FROM metabase/metabase:latest
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Expose the port Hugging Face Spaces expects
8
+ EXPOSE 7860
9
+
10
+ # Optional: Set environment variables for configuration
11
+ ENV MB_DB_TYPE=sqlite
12
+ ENV MB_DB_FILE=/data/metabase.db
13
+
14
+ # Create a directory for persistent data
15
+ RUN mkdir -p /data
16
+
17
+ # Optional: Copy any additional configuration files
18
+ # COPY config.json /app/config.json
19
+
20
+ # Ensure the data directory is a volume
21
+ VOLUME /data
22
+
23
+ # Run Metabase
24
+ CMD ["java", "-jar", "/app/metabase.jar"]