Spaces:
Build error
Build error
Commit
·
13aec95
1
Parent(s):
67c8829
Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -10,14 +10,14 @@ COPY ./requirements.txt /code/requirements.txt
|
|
10 |
# Install necessary Ubuntu packages and a deb package from a URL
|
11 |
RUN apt-get update && \
|
12 |
apt-get install -y sudo wget && \
|
13 |
-
sudo apt-get install -y libxkbcommon-x11-dev libpcre++-dev libvulkan-dev libgl1-mesa-dev qt6-base-dev qt6-base-dev-tools qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-translations-l10n libqt6svg6-dev libarchive-dev libpcre2-dev wget
|
14 |
-
dpkg -i translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb || true && \
|
15 |
-
sudo apt-get install -f -y
|
16 |
|
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,9 +33,7 @@ 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 |
-
RUN wget "https://github.com/XapaJIaMnu/translateLocally/releases/download/latest/translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb"
|
37 |
|
38 |
-
RUN dpkg -x translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb .
|
39 |
|
40 |
# Running the Flask application
|
41 |
CMD ["python", "app.py"]
|
|
|
10 |
# Install necessary Ubuntu packages and a deb package from a URL
|
11 |
RUN apt-get update && \
|
12 |
apt-get install -y sudo wget && \
|
13 |
+
sudo apt-get install -y libxkbcommon-x11-dev libpcre++-dev libvulkan-dev libgl1-mesa-dev qt6-base-dev qt6-base-dev-tools qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-translations-l10n libqt6svg6-dev libarchive-dev libpcre2-dev wget
|
|
|
|
|
14 |
|
15 |
# Install requirements.txt
|
16 |
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 -x translateLocally-v0.0.2+136745e-Ubuntu-20.04.AVX.deb .
|
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 |
|
|
|
37 |
|
38 |
# Running the Flask application
|
39 |
CMD ["python", "app.py"]
|