Spaces:
Runtime error
Runtime error
Commit
·
55a1b28
1
Parent(s):
cecd77a
Add python3.9#
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -2,16 +2,20 @@ FROM ubuntu:20.04
|
|
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
|
15 |
|
16 |
# Download libfluidsynth source
|
17 |
RUN wget https://github.com/FluidSynth/fluidsynth/archive/refs/tags/v2.3.3.tar.gz && \
|
@@ -38,7 +42,8 @@ USER user
|
|
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
|
|
|
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 |
|
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
|