Spaces:
Build error
Build error
juancopi81
commited on
Commit
·
b238b6d
1
Parent(s):
55a1b28
Change image to python:3.9
Browse files- Dockerfile +5 -10
Dockerfile
CHANGED
@@ -1,21 +1,17 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
# Preconfigure tzdata
|
8 |
RUN DEBIAN_FRONTEND="noninteractive" apt-get -qq update && \
|
9 |
DEBIAN_FRONTEND="noninteractive" apt-get install -y tzdata
|
10 |
|
11 |
-
# Add deadsnakes PPA to get Python 3.9
|
12 |
-
RUN apt-get install -y software-properties-common && \
|
13 |
-
add-apt-repository ppa:deadsnakes/ppa && \
|
14 |
-
apt-get update && \
|
15 |
-
apt-get install -y python3.9 python3-pip
|
16 |
-
|
17 |
RUN apt-get update -qq && \
|
18 |
-
apt-get install -qq build-essential libasound2-dev libjack-dev wget cmake pkg-config libglib2.0-dev ffmpeg
|
19 |
|
20 |
# Download libfluidsynth source
|
21 |
RUN wget https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.3.tar.gz && \
|
@@ -42,8 +38,7 @@ USER user
|
|
42 |
|
43 |
# Set home to the user's home directory
|
44 |
ENV HOME=/home/user \
|
45 |
-
PATH=/home/user/.local/bin:$PATH
|
46 |
-
SYSTEM='spaces'
|
47 |
|
48 |
# Set the working directory to the user's home directory
|
49 |
WORKDIR $HOME/app
|
|
|
1 |
+
FROM python:3.9
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
ENV SYSTEM=spaces
|
6 |
+
|
7 |
COPY ./requirements.txt /code/requirements.txt
|
8 |
|
9 |
# Preconfigure tzdata
|
10 |
RUN DEBIAN_FRONTEND="noninteractive" apt-get -qq update && \
|
11 |
DEBIAN_FRONTEND="noninteractive" apt-get install -y tzdata
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
RUN apt-get update -qq && \
|
14 |
+
apt-get install -qq python3-pip build-essential libasound2-dev libjack-dev wget cmake pkg-config libglib2.0-dev ffmpeg
|
15 |
|
16 |
# Download libfluidsynth source
|
17 |
RUN wget https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.3.tar.gz && \
|
|
|
38 |
|
39 |
# Set home to the user's home directory
|
40 |
ENV HOME=/home/user \
|
41 |
+
PATH=/home/user/.local/bin:$PATH
|
|
|
42 |
|
43 |
# Set the working directory to the user's home directory
|
44 |
WORKDIR $HOME/app
|