Spaces:
Build error
Build error
Hannes Kath commited on
Commit ·
8d31403
1
Parent(s): 59c522b
change Dockerfile
Browse files- Dockerfile +1 -36
Dockerfile
CHANGED
|
@@ -1,38 +1,3 @@
|
|
| 1 |
-
|
| 2 |
FROM python:3.10
|
| 3 |
|
| 4 |
-
# Define build arguments for accessing the repository
|
| 5 |
-
ARG GITLAB_DEPLOYTOKEN_USERNAME=gitlab+deploy-token-94
|
| 6 |
-
ARG GITLAB_DEPLOYTOKEN_PASSWORD=gldt-TQBhFs28iZUJSwVSBfR8
|
| 7 |
-
|
| 8 |
-
# Set the Git repository URL with deploy token
|
| 9 |
-
ARG REPO_URL=https://$GITLAB_DEPLOYTOKEN_USERNAME:$GITLAB_DEPLOYTOKEN_PASSWORD@git.ni.dfki.de/iml/cst/pam_al_ui.git
|
| 10 |
-
|
| 11 |
-
# Clone the Git repository
|
| 12 |
-
RUN git clone ${REPO_URL} /git_app
|
| 13 |
-
|
| 14 |
-
# Switch to the cloned directory
|
| 15 |
-
WORKDIR /git_app
|
| 16 |
-
|
| 17 |
-
# Install dependencies
|
| 18 |
-
RUN pip install --upgrade pip setuptools wheel
|
| 19 |
-
RUN python3 -m pip install -r requirements.txt
|
| 20 |
-
|
| 21 |
-
### works until here ###
|
| 22 |
-
|
| 23 |
-
# Set up a new user named "user" with user ID 1000
|
| 24 |
-
RUN useradd -m -u 1000 user
|
| 25 |
-
# Switch to the "user" user
|
| 26 |
-
USER user
|
| 27 |
-
|
| 28 |
-
# Set the working directory to the user's home directory
|
| 29 |
-
WORKDIR $HOME/git_app
|
| 30 |
-
|
| 31 |
-
# Make port available to the world outside this container
|
| 32 |
-
EXPOSE 7860/tcp
|
| 33 |
-
|
| 34 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 35 |
-
COPY --chown=user . $HOME/git_app
|
| 36 |
-
|
| 37 |
-
# Run your application
|
| 38 |
-
CMD ["python3", "app.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
ARG DASH_ACOUSTIC
|
| 2 |
FROM python:3.10
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|