Spaces:
Runtime error
Runtime error
Nicky Nicolson
commited on
Commit
•
5300c16
1
Parent(s):
5cedca5
Added Dockerfile for vanilla datasette installation
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
COPY ./requirements.txt /code/requirements.txt
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
+
|
9 |
+
ADD https://static.simonwillison.net/static/2023/history.db /code/history.db
|
10 |
+
|
11 |
+
RUN sqlite-utils tables /code/history.db --counts
|
12 |
+
RUN chmod 755 /code/history.db
|
13 |
+
|
14 |
+
COPY ./metadata.yml /code/metadata.yml
|
15 |
+
|
16 |
+
CMD ["datasette", "/code/history.db", "-m", "/code/metadata.yml", "--host", "0.0.0.0", "--port", "7860"]
|