Spaces:
Runtime error
Runtime error
Commit
•
36a2d60
1
Parent(s):
5ad5918
Push to HF space
Browse files- Dockerfile +6 -2
- dist/lilac-1337.0.0-py3-none-any.whl +2 -2
- docker_start.sh +1 -1
Dockerfile
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
-
|
2 |
-
FROM python:3.9-bullseye
|
3 |
|
4 |
# Allow statements and log messages to immediately appear in the Knative logs
|
5 |
ENV PYTHONUNBUFFERED True
|
6 |
|
|
|
|
|
|
|
|
|
7 |
# See: https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
|
8 |
RUN useradd -m -u 1000 user
|
9 |
USER user
|
@@ -39,4 +42,5 @@ COPY --chown=user docker_start.sh ./
|
|
39 |
RUN mkdir -p ./data
|
40 |
RUN chown -R user ./data
|
41 |
|
|
|
42 |
CMD ["bash", "docker_start.sh"]
|
|
|
1 |
+
FROM python:3.11-slim-bullseye
|
|
|
2 |
|
3 |
# Allow statements and log messages to immediately appear in the Knative logs
|
4 |
ENV PYTHONUNBUFFERED True
|
5 |
|
6 |
+
# Adds GCC and other build tools so we can compile hnswlib and other native/C++ deps.
|
7 |
+
RUN apt-get update --fix-missing && apt-get install -y --fix-missing build-essential && \
|
8 |
+
rm -rf /var/lib/apt/lists/*
|
9 |
+
|
10 |
# See: https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
|
11 |
RUN useradd -m -u 1000 user
|
12 |
USER user
|
|
|
42 |
RUN mkdir -p ./data
|
43 |
RUN chown -R user ./data
|
44 |
|
45 |
+
EXPOSE 8000
|
46 |
CMD ["bash", "docker_start.sh"]
|
dist/lilac-1337.0.0-py3-none-any.whl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dfa02fc8af7f93f502ec2a79a1a1843f8abd6fd178ed3b487dd3544850ad1f04
|
3 |
+
size 1210108
|
docker_start.sh
CHANGED
@@ -5,6 +5,6 @@ set -e
|
|
5 |
|
6 |
lilac hf-docker-start
|
7 |
gunicorn lilac.server:app \
|
8 |
-
--bind 0.0.0.0:
|
9 |
--preload -k uvicorn.workers.UvicornWorker \
|
10 |
--timeout 120
|
|
|
5 |
|
6 |
lilac hf-docker-start
|
7 |
gunicorn lilac.server:app \
|
8 |
+
--bind 0.0.0.0:8000 \
|
9 |
--preload -k uvicorn.workers.UvicornWorker \
|
10 |
--timeout 120
|