Spaces:
Build error
Build error
Commit
·
993518f
1
Parent(s):
13aec95
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -7,6 +7,9 @@ WORKDIR /code
|
|
7 |
# Copy the current directory contents into the container at /code
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
|
|
|
|
|
|
10 |
# Install necessary Ubuntu packages and a deb package from a URL
|
11 |
RUN apt-get update && \
|
12 |
apt-get install -y sudo wget && \
|
@@ -17,7 +20,7 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
17 |
|
18 |
RUN wget "https://github.com/XapaJIaMnu/translateLocally/releases/download/latest/translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb"
|
19 |
|
20 |
-
RUN dpkg -
|
21 |
|
22 |
# Set up a new user named "user" with user ID 1000
|
23 |
RUN useradd -m -u 1000 user
|
|
|
7 |
# Copy the current directory contents into the container at /code
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
+
RUN apk add --virtual build-dependencies
|
11 |
+
RUN apk add --no-cache build-base gcc
|
12 |
+
|
13 |
# Install necessary Ubuntu packages and a deb package from a URL
|
14 |
RUN apt-get update && \
|
15 |
apt-get install -y sudo wget && \
|
|
|
20 |
|
21 |
RUN wget "https://github.com/XapaJIaMnu/translateLocally/releases/download/latest/translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb"
|
22 |
|
23 |
+
RUN sudo dpkg -i translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb
|
24 |
|
25 |
# Set up a new user named "user" with user ID 1000
|
26 |
RUN useradd -m -u 1000 user
|