Skip to content

Commit a83573b

Browse files
committed
copy file instead of cloning
1 parent 389d858 commit a83573b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ ARG MODELS_API_ENV_FILE
1818

1919
RUN apt-get update && apt-get install -y git curl && apt-get clean
2020

21+
# Work directory of the application
2122
WORKDIR /src
22-
RUN git clone ${REPO_URI} . && git checkout ${BRANCH_NAME}
23+
24+
# Copy contents to src/
25+
COPY . .
2326

2427
# Write secrets
2528
RUN mkdir -p secrets && \
@@ -48,9 +51,8 @@ ENV PATH="/root/.cargo/bin:/root/.local/bin:${PATH}"
4851
# Work directory of the application
4952
WORKDIR /src
5053

51-
# Clone the repository and switch to the specific branch
52-
RUN git clone ${REPO_URI} . && \
53-
git checkout ${BRANCH_NAME}
54+
# Copy contents to src/
55+
COPY . .
5456

5557
# Install python dependencies
5658
# NOTE: Runs as a cautionary step

0 commit comments

Comments
 (0)