We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389d858 commit a83573bCopy full SHA for a83573b
Dockerfile
@@ -18,8 +18,11 @@ ARG MODELS_API_ENV_FILE
18
19
RUN apt-get update && apt-get install -y git curl && apt-get clean
20
21
+# Work directory of the application
22
WORKDIR /src
-RUN git clone ${REPO_URI} . && git checkout ${BRANCH_NAME}
23
+
24
+# Copy contents to src/
25
+COPY . .
26
27
# Write secrets
28
RUN mkdir -p secrets && \
@@ -48,9 +51,8 @@ ENV PATH="/root/.cargo/bin:/root/.local/bin:${PATH}"
48
51
# Work directory of the application
49
52
50
53
-# Clone the repository and switch to the specific branch
-RUN git clone ${REPO_URI} . && \
- git checkout ${BRANCH_NAME}
54
55
56
57
# Install python dependencies
58
# NOTE: Runs as a cautionary step
0 commit comments