Spaces:
Runtime error
Runtime error
Commit
·
e94f43d
1
Parent(s):
25db05b
having issues with the Docker, but maybe it works on HF
Browse files- Dockerfile +12 -2
Dockerfile
CHANGED
@@ -2,6 +2,18 @@
|
|
2 |
# https://hub.docker.com/r/nikolaik/python-nodejs
|
3 |
FROM nikolaik/python-nodejs:python3.11-nodejs18
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Set up a new user named "user" with user ID 1000
|
6 |
RUN useradd -o -u 1000 user
|
7 |
|
@@ -22,8 +34,6 @@ COPY --chown=user package*.json $HOME/app
|
|
22 |
|
23 |
RUN npm install
|
24 |
|
25 |
-
COPY requirements.txt requirements.txt
|
26 |
-
RUN pip install -r requirements.txt
|
27 |
|
28 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
29 |
COPY --chown=user . $HOME/app
|
|
|
2 |
# https://hub.docker.com/r/nikolaik/python-nodejs
|
3 |
FROM nikolaik/python-nodejs:python3.11-nodejs18
|
4 |
|
5 |
+
WORKDIR /code
|
6 |
+
|
7 |
+
COPY ./requirements.txt /code/requirements.txt
|
8 |
+
|
9 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
+
|
11 |
+
# if no binary is available for your env, use --no-binary
|
12 |
+
# RUN pip install ctransformers --no-binary ctransformers
|
13 |
+
|
14 |
+
# or if you want to enable GPU with CUDA:
|
15 |
+
# RUN CT_CUBLAS=1 pip install ctransformers --no-binary ctransformers
|
16 |
+
|
17 |
# Set up a new user named "user" with user ID 1000
|
18 |
RUN useradd -o -u 1000 user
|
19 |
|
|
|
34 |
|
35 |
RUN npm install
|
36 |
|
|
|
|
|
37 |
|
38 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
39 |
COPY --chown=user . $HOME/app
|