Spaces:
Runtime error
Runtime error
Commit
·
1dd6c8c
1
Parent(s):
67c55ce
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -15,12 +15,15 @@ WORKDIR $HOME/app
|
|
15 |
|
16 |
# Install the dependencies. This will look in ./dist for any wheels that match lilac. If they are
|
17 |
# not found, it will use the public pip package.
|
18 |
-
|
19 |
# Pip install lilac[all] and dependencies before trying to install the local image. This allows us
|
20 |
# to get cache hits on dependency installations when using a local wheel. When using the public pip
|
21 |
# package, the second call will be a no-op.
|
22 |
RUN python -m pip install lilac[all]
|
23 |
-
|
|
|
|
|
|
|
24 |
|
25 |
COPY --chown=user .env .
|
26 |
COPY --chown=user .env.demo .
|
|
|
15 |
|
16 |
# Install the dependencies. This will look in ./dist for any wheels that match lilac. If they are
|
17 |
# not found, it will use the public pip package.
|
18 |
+
|
19 |
# Pip install lilac[all] and dependencies before trying to install the local image. This allows us
|
20 |
# to get cache hits on dependency installations when using a local wheel. When using the public pip
|
21 |
# package, the second call will be a no-op.
|
22 |
RUN python -m pip install lilac[all]
|
23 |
+
|
24 |
+
# Install from the local wheel. This will be a no-op if the wheel is not found.
|
25 |
+
COPY --chown=user /dist ./dist/
|
26 |
+
RUN python -m pip install --find-links=dist --upgrade lilac[all]
|
27 |
|
28 |
COPY --chown=user .env .
|
29 |
COPY --chown=user .env.demo .
|