Use smaller git image

This commit is contained in:
Gabriel Augendre 2020-11-11 08:52:48 +01:00
parent dbce4778b2
commit 293dbf980f
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -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