Spaces:
Build error
Build error
Commit
·
2970676
1
Parent(s):
55cb001
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -17,7 +17,7 @@ RUN apt-get update && \
|
|
17 |
# Install requirements.txt
|
18 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
19 |
|
20 |
-
|
21 |
|
22 |
# Set up a new user named "user" with user ID 1000
|
23 |
RUN useradd -m -u 1000 user
|
@@ -33,5 +33,9 @@ WORKDIR $HOME/app
|
|
33 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
34 |
COPY --chown=user . $HOME/app
|
35 |
|
|
|
|
|
|
|
|
|
36 |
# Running the Flask application
|
37 |
CMD ["python", "app.py"]
|
|
|
17 |
# Install requirements.txt
|
18 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
19 |
|
20 |
+
|
21 |
|
22 |
# Set up a new user named "user" with user ID 1000
|
23 |
RUN useradd -m -u 1000 user
|
|
|
33 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
34 |
COPY --chown=user . $HOME/app
|
35 |
|
36 |
+
RUN wget "https://github.com/XapaJIaMnu/translateLocally/releases/download/latest/translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb"
|
37 |
+
|
38 |
+
RUN sudo dpkg -i translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb
|
39 |
+
|
40 |
# Running the Flask application
|
41 |
CMD ["python", "app.py"]
|