blob: 9aa8dc39f1ca749c2aeddebab3f7d5680a008755 [file] [log] [blame]
# We use debian:9.5 here instead of
# 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
ENV PATH /tmp/workdir/client-py:/tmp/workdir/:$PATH
ENTRYPOINT ["/leasing"]