Spaces:
Runtime error
Runtime error
FROM python:3.11 | |
WORKDIR /code | |
COPY ./requirements.txt /code/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# ADD https://static.simonwillison.net/static/2023/history.db /code/history.db | |
COPY ./start.sh /code/start.sh | |
COPY ./*.db /code/ | |
# RUN sqlite-utils tables /code/history.db --counts | |
RUN chmod 755 -R /code/*.db | |
RUN chmod 755 /code/start.sh | |
COPY ./metadata.yml /code/metadata.yml | |
# CMD ["datasette", "/code/data/*.db", "-m", "/code/metadata.yml", "--host", "0.0.0.0", "--port", "7860"] | |
CMD ["bash", "start.sh"] | |