Spaces:
Build error
Build error
juancopi81
commited on
Commit
•
f3fc5f2
1
Parent(s):
2fd0675
Change image to ubuntu20.04
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
RUN apt-get update -qq && \
|
8 |
-
apt-get install -qq libfluidsynth build-essential libasound2-dev libjack-dev
|
9 |
|
10 |
-
RUN
|
11 |
|
12 |
# Set up a new user named "user" with user ID 1000
|
13 |
RUN useradd -m -u 1000 user
|
@@ -25,4 +25,4 @@ WORKDIR $HOME/app
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
-
CMD ["
|
|
|
1 |
+
FROM ubuntu:20.04
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
RUN apt-get update -qq && \
|
8 |
+
apt-get install -qq python3-pip libfluidsynth build-essential libasound2-dev libjack-dev
|
9 |
|
10 |
+
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
11 |
|
12 |
# Set up a new user named "user" with user ID 1000
|
13 |
RUN useradd -m -u 1000 user
|
|
|
25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
+
CMD ["python3", "main.py"]
|