DFKI-IML/long-time-scale
0
1ARG GRADIO_ACOUSTIC2FROM python:3.9.63 4LABEL maintainer="Rida Saghir ridasagheer94@gmail.com"5 6# Define build arguments for accessing the repository7#ARG GITLAB_DEPLOYTOKEN_USERNAME=gitlab+deploy+lts8#ARG GITLAB_DEPLOYTOKEN_PASSWORD=gldt-xMH79XLsNs3swTMZsmqv9 10 11# Set the Git repository URL with deploy token12#ARG REPO_URL=https://$GITLAB_DEPLOYTOKEN_USERNAME:$GITLAB_DEPLOYTOKEN_PASSWORD@git.ni.dfki.de/iml/cst/long-time-scale/timeseries-interface.git13 14 15# FOR FCS FEATURE, PULL THIS16ARG GITLAB_DEPLOYTOKEN_USERNAME=gitlab+deploy-token-9917ARG GITLAB_DEPLOYTOKEN_PASSWORD=gldt-ER9dUDDw4bH3hYzggfoJ18 19ARG REPO_URL=https://$GITLAB_DEPLOYTOKEN_USERNAME:$GITLAB_DEPLOYTOKEN_PASSWORD@git.ni.dfki.de/iml/cst/long-time-scale/long-time-scale-with-fcs.git20 21# Clone the Git repository22RUN git clone ${REPO_URL} /lts_app23 24# Set the working directory25WORKDIR /lts_app26 27RUN git checkout main28RUN chmod 777 /lts_app29 30RUN mkdir /demo31RUN chmod 777 /demo32 33# Install dependencies34RUN pip install -r requirements.txt35 36#RUN apt-get update && apt-get install -y libsndfile137 38# Set up a new user named "user" with user ID 100039RUN useradd -m -u 1000 user40# Switch to the "user" user41USER user42 43# Set the working directory to the user's home directory44WORKDIR $HOME/lts_app45 46# Make port available to the world outside this container47EXPOSE 7860/tcp48 49# Define environment variable50ENV NAME Acoustic51 52# Copy the current directory contents into the container at $HOME/app setting the owner to the user53COPY --chown=user . $HOME/lts_app54 55# add directory /lts_app to the save list so that it is possible to get branch, hash, tag56RUN git config --global --add safe.directory /lts_app57 58 59# Run your application60CMD ["python3", "app.py", "--host", "0.0.0.0", "--port", "7860"]61 62 63 