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
|
FROM alpine/git:v2.26.2 AS git
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y git \
|
|
||||||
&& mkdir /app
|
|
||||||
|
|
||||||
ADD . /app
|
ADD . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN git rev-parse HEAD | tee /version
|
RUN git rev-parse HEAD | tee /version
|
||||||
|
|
Reference in a new issue