Spaces:
Runtime error
Runtime error
Commit
·
58e3a83
1
Parent(s):
2bd9524
refactor: simplify file copying in Dockerfile and remove unnecessary labels
Browse files- Dockerfile +1 -12
Dockerfile
CHANGED
@@ -1,15 +1,6 @@
|
|
1 |
# Use the official PyTorch image as the base
|
2 |
FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime
|
3 |
|
4 |
-
# Labels
|
5 |
-
LABEL maintainer="Jacob Schmieder"
|
6 |
-
LABEL email="[email protected]"
|
7 |
-
LABEL version="0.1.1.dev"
|
8 |
-
LABEL description="Scraibe is a tool for automatic speech recognition and speaker diarization. \
|
9 |
-
It is based on the Hugging Face Transformers library and the Pyannote library. \
|
10 |
-
It is designed to be used with the Whisper model, a lightweight model for automatic \
|
11 |
-
speech recognition and speaker diarization."
|
12 |
-
LABEL url="https://github.com/JSchmie/ScrAIbe"
|
13 |
|
14 |
# Set up a new user named "hyathi" with user ID 1000
|
15 |
RUN useradd -m -u 1000 hyathi
|
@@ -38,9 +29,7 @@ ENV AUTOT_CACHE=$HOME/app/models
|
|
38 |
ENV PYANNOTE_CACHE=$HOME/app/models/pyannote
|
39 |
|
40 |
# Copy all necessary files
|
41 |
-
COPY
|
42 |
-
COPY README.md $HOME/app/README.md
|
43 |
-
COPY scraibe $HOME/app/scraibe
|
44 |
|
45 |
# Installing all necessary dependencies and running the application with a personalized Hugging-Face-Token
|
46 |
RUN sudo apt update -y && sudo apt upgrade -y && \
|
|
|
1 |
# Use the official PyTorch image as the base
|
2 |
FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
# Set up a new user named "hyathi" with user ID 1000
|
6 |
RUN useradd -m -u 1000 hyathi
|
|
|
29 |
ENV PYANNOTE_CACHE=$HOME/app/models/pyannote
|
30 |
|
31 |
# Copy all necessary files
|
32 |
+
COPY --chown=hyathi . $HOME/app
|
|
|
|
|
33 |
|
34 |
# Installing all necessary dependencies and running the application with a personalized Hugging-Face-Token
|
35 |
RUN sudo apt update -y && sudo apt upgrade -y && \
|