Use smaller git image
This commit is contained in:
parent
dbce4778b2
commit
293dbf980f
1 changed files with 1 additions and 5 deletions
|
@ -1,8 +1,4 @@
|
|||
FROM ubuntu:latest as git
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y git \
|
||||
&& mkdir /app
|
||||
|
||||
FROM alpine/git:v2.26.2 AS git
|
||||
ADD . /app
|
||||
WORKDIR /app
|
||||
RUN git rev-parse HEAD | tee /version
|
||||
|
|
Reference in a new issue