blob: 034aa0b602b7b861af6e3abde21e544202a1e54e [file] [log] [blame]
# We use debian:9.5 here instead of gcr.io/skia-public/basealpine
# because the isolate binary downloaded by go/isolate requires access to
# a library that the alpine image does not contain.
FROM debian:9.5
USER root
RUN apt-get update && apt-get install -y git file ca-certificates python
#Add user so we don't have to run as root (prevents us from over-writing files in /SRC)
RUN groupadd -g 2000 skia \
&& useradd -u 2000 -g 2000 skia \
&& mkdir -p /home/skia \
&& chown -R skia:skia /home/skia
USER skia
COPY . /
RUN mkdir -p /tmp/workdir && \
cd /tmp/workdir && \
git clone https://github.com/luci/client-py.git
ENV PATH /tmp/workdir/client-py:/tmp/workdir/:$PATH
ENTRYPOINT ["/leasing"]