PetrosStav commited on
Commit
bf782fe
·
verified ·
1 Parent(s): 826d314

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -3
Dockerfile CHANGED
@@ -1,7 +1,16 @@
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,7 +21,7 @@ ENV HOME=/home/user \
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
 
1
+ # FROM intelligencenoborders/scinobo-citance-analysis:v0.1.0
2
+
3
+ FROM scratch as docker-login
4
+ ARG DOCKER_USERNAME
5
+ ARG DOCKER_PASSWORD
6
+ ARG DOCKER_REGISTRY=registry.hub.docker.com
7
+
8
+ RUN echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY"
9
+
10
+ FROM intelligencenoborders/inobo:citance_analysis_scibert
11
 
12
  # Copy files
13
+ # COPY download_model.py /app
14
 
15
  RUN useradd -m -u 1000 user
16
 
 
21
  PATH=/home/user/.local/bin:$PATH
22
 
23
  # Run the download
24
+ # RUN python /app/download_model.py
25
 
26
  # Set the working directory in the container
27
  WORKDIR /app/src