Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -15
Dockerfile
CHANGED
|
@@ -1,19 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
# Stage 1: Authenticate to Docker registry
|
| 4 |
-
FROM alpine:latest AS docker-login
|
| 5 |
-
|
| 6 |
-
RUN apk add --no-cache docker-cli
|
| 7 |
-
|
| 8 |
-
# Use BuildKit secrets for secure credential handling
|
| 9 |
-
RUN --mount=type=secret,id=DOCKER_USERNAME,required=true \
|
| 10 |
-
--mount=type=secret,id=DOCKER_PASSWORD,required=true \
|
| 11 |
-
echo "$(cat /run/secrets/DOCKER_PASSWORD)" | docker login -u "$(cat /run/secrets/DOCKER_USERNAME)" --password-stdin registry.hub.docker.com
|
| 12 |
-
|
| 13 |
-
FROM intelligencenoborders/inobo:citance_analysis_scibert
|
| 14 |
|
| 15 |
# Copy files
|
| 16 |
-
|
| 17 |
|
| 18 |
RUN useradd -m -u 1000 user
|
| 19 |
|
|
@@ -24,7 +12,7 @@ ENV HOME=/home/user \
|
|
| 24 |
PATH=/home/user/.local/bin:$PATH
|
| 25 |
|
| 26 |
# Run the download
|
| 27 |
-
|
| 28 |
|
| 29 |
# Set the working directory in the container
|
| 30 |
WORKDIR /app/src
|
|
|
|
| 1 |
+
FROM intelligencenoborders/scinobo-citance-analysis:v0.1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
# Copy files
|
| 4 |
+
COPY download_model.py /app
|
| 5 |
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
|
|
|
|
| 12 |
PATH=/home/user/.local/bin:$PATH
|
| 13 |
|
| 14 |
# Run the download
|
| 15 |
+
RUN python /app/download_model.py
|
| 16 |
|
| 17 |
# Set the working directory in the container
|
| 18 |
WORKDIR /app/src
|