ashh757 commited on
Commit
da9089f
·
verified ·
1 Parent(s): 4794003

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -46,7 +46,12 @@ COPY --from=builder /usr/local/bin /usr/local/bin
46
 
47
  # Change ownership of the app directory to the user
48
  RUN chown -R user:user $HOME/app
49
-
 
 
 
 
 
50
  # Expose secrets at build time and store them in a file
51
  RUN --mount=type=secret,id=AWS_ACCESS_KEY_ID,mode=0444,required=true \
52
  git init && \
 
46
 
47
  # Change ownership of the app directory to the user
48
  RUN chown -R user:user $HOME/app
49
+
50
+ # Install git in the final stage
51
+ RUN apt-get update && apt-get install -y --no-install-recommends git \
52
+ && apt-get clean \
53
+ && rm -rf /var/lib/apt/lists/*
54
+
55
  # Expose secrets at build time and store them in a file
56
  RUN --mount=type=secret,id=AWS_ACCESS_KEY_ID,mode=0444,required=true \
57
  git init && \