Delete Dockerfile
Browse files- Dockerfile +0 -38
Dockerfile
DELETED
|
@@ -1,38 +0,0 @@
|
|
| 1 |
-
emoji: 🐳
|
| 2 |
-
colorFrom: purple
|
| 3 |
-
colorTo: gray
|
| 4 |
-
sdk: docker
|
| 5 |
-
app_port: 7860
|
| 6 |
-
# Declare your environment variables with the ARG directive
|
| 7 |
-
ARG MODEL_REPO_NAME
|
| 8 |
-
|
| 9 |
-
FROM python:latest
|
| 10 |
-
# [...]
|
| 11 |
-
# You can use them like environment variables
|
| 12 |
-
RUN predict.py $MODEL_REPO_NAME
|
| 13 |
-
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 14 |
-
RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
|
| 15 |
-
git init && \
|
| 16 |
-
git remote add origin $(cat /run/secrets/SECRET_EXAMPLE)
|
| 17 |
-
# Set up a new user named "user" with user ID 1000
|
| 18 |
-
RUN useradd -m -u bendy user
|
| 19 |
-
|
| 20 |
-
# Switch to the "user" user
|
| 21 |
-
USER user
|
| 22 |
-
|
| 23 |
-
# Set home to the user's home directory
|
| 24 |
-
ENV HOME=/home/user \
|
| 25 |
-
PATH=/home/user/.local/bin:$PATH
|
| 26 |
-
|
| 27 |
-
# Set the working directory to the user's home directory
|
| 28 |
-
WORKDIR $HOME/app
|
| 29 |
-
|
| 30 |
-
# Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
|
| 31 |
-
RUN pip install --no-cache-dir --upgrade pip
|
| 32 |
-
|
| 33 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 34 |
-
COPY --chown=user . $HOME/app
|
| 35 |
-
|
| 36 |
-
# Download a checkpoint
|
| 37 |
-
RUN mkdir content
|
| 38 |
-
ADD --chown=user https://<SOME_ASSET_URL> content/<SOME_ASSET_NAME>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|