yasserrmd commited on
Commit
2fb2e7b
·
verified ·
1 Parent(s): 8cee334

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -11
Dockerfile CHANGED
@@ -1,5 +1,18 @@
1
  FROM python:3.10-slim
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  # Create and switch to a non-root user
4
  RUN useradd -m -u 1000 user
5
  USER user
@@ -8,22 +21,13 @@ ENV PATH="/home/user/.local/bin:$PATH"
8
  # Set working directory
9
  WORKDIR /app
10
 
11
- # Install system dependencies
12
- RUN apt-get update && apt-get install -y \
13
- libasound2-dev \
14
- portaudio19-dev \
15
- cmake g++ libpulse-dev \
16
- && rm -rf /var/lib/apt/lists/*
17
 
18
  # Install Python dependencies
19
  COPY --chown=user ./requirements.txt requirements.txt
20
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
21
 
22
- # Clone and build ggwave
23
- RUN git clone https://github.com/ggerganov/ggwave.git --recursive && \
24
- cd ggwave/bindings/python && \
25
- make build && \
26
- pip install .
27
 
28
  # Copy application files
29
  COPY --chown=user . /app
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ libasound2-dev \
6
+ portaudio19-dev \
7
+ cmake g++ libpulse-dev \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Clone and build ggwave
11
+ RUN git clone https://github.com/ggerganov/ggwave.git --recursive && \
12
+ cd ggwave/bindings/python && \
13
+ make build && \
14
+ pip install .
15
+
16
  # Create and switch to a non-root user
17
  RUN useradd -m -u 1000 user
18
  USER user
 
21
  # Set working directory
22
  WORKDIR /app
23
 
24
+
 
 
 
 
 
25
 
26
  # Install Python dependencies
27
  COPY --chown=user ./requirements.txt requirements.txt
28
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
29
 
30
+
 
 
 
 
31
 
32
  # Copy application files
33
  COPY --chown=user . /app