Use alpine base image and adjust package installs

This commit is contained in:
Tuschl 2020-04-15 23:29:53 +02:00
parent 3357bd8888
commit d7e59347c1

View File

@ -1,12 +1,10 @@
FROM ubuntu:19.04 FROM alpine:3
RUN apt update && apt-get install -y --no-install-recommends \ RUN apk add --no-cache clang python3
clang-format python3 \
&& rm -rf /var/lib/apt/lists/*
ADD run-clang-format/run-clang-format.py /usr/bin ADD run-clang-format/run-clang-format.py /usr/bin
RUN mkdir /src RUN mkdir /src
WORKDIR /src WORKDIR /src
ENTRYPOINT ["run-clang-format.py"] ENTRYPOINT ["python3", "/usr/bin/run-clang-format.py"]