Mohammed Naser cc5d82883c Add builder pattern
This builder pattern refactors things so that we can use the same
code to generate manifests/etc.  This means that if we make sure
that we exclusively use those, we can do testing there and keep
something common.

Change-Id: Ibc39f9b9e3e21b18fb255ba2a67d2d8ba3b5c585
2020-03-25 01:32:48 +02:00

18 lines
708 B
Docker

FROM ubuntu:bionic
RUN groupadd -r mcrouter \
&& useradd -r -g mcrouter mcrouter
RUN apt update && \
apt install -y --no-install-recommends ca-certificates wget gnupg && \
wget -O - https://facebook.github.io/mcrouter/debrepo/bionic/PUBLIC.KEY | apt-key add && \
echo "deb https://facebook.github.io/mcrouter/debrepo/bionic bionic contrib" >> /etc/apt/sources.list && \
apt update && \
apt install -y mcrouter && \
apt remove -y wget gnupg && \
apt autoremove -y && \
apt clean all
RUN chown -R mcrouter:mcrouter /var/spool/mcrouter
RUN chown -R mcrouter:mcrouter /var/mcrouter
RUN chown -R mcrouter:mcrouter /usr/bin/mcrouter
USER mcrouter
ENTRYPOINT ["/usr/bin/mcrouter"]