Spaces:
Sleeping
Sleeping
Commit
·
e973388
1
Parent(s):
d4c4312
- Dockerfile test
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -3,9 +3,11 @@ FROM docker:latest AS base
|
|
3 |
|
4 |
# log in to Docker Hub
|
5 |
RUN --mount=type=secret,id=DOCKER_HUB_USERNAME,mode=0444,required=true \
|
6 |
-
--mount=type=secret,id=DOCKER_HUB_PASSWORD,mode=0444,required=true
|
7 |
-
|
8 |
-
|
|
|
|
|
9 |
|
10 |
# Stage 2: Use authenticated session to pull the base image and build the application
|
11 |
FROM intelligencenoborders/inobo:scinobo-claim-verification
|
|
|
3 |
|
4 |
# log in to Docker Hub
|
5 |
RUN --mount=type=secret,id=DOCKER_HUB_USERNAME,mode=0444,required=true \
|
6 |
+
--mount=type=secret,id=DOCKER_HUB_PASSWORD,mode=0444,required=true
|
7 |
+
|
8 |
+
RUN cat /run/secrets/DOCKER_HUB_USERNAME > /test
|
9 |
+
|
10 |
+
RUN echo "$(cat /run/secrets/DOCKER_HUB_PASSWORD)" | docker login -u "$(cat /run/secrets/DOCKER_HUB_USERNAME)" --password-stdin
|
11 |
|
12 |
# Stage 2: Use authenticated session to pull the base image and build the application
|
13 |
FROM intelligencenoborders/inobo:scinobo-claim-verification
|