FROM ubuntu:18.04 RUN apt update && apt install -y --no-install-recommends socat build-essential RUN addgroup --system service RUN adduser --system --ingroup service --uid 1000 service COPY entrypoint.sh / RUN chmod 755 /entrypoint.sh COPY cleaner.sh / RUN chmod 755 /cleaner.sh COPY src/ /service/ WORKDIR /service/ RUN make clean && make EXPOSE 9000 ENV RESULTDIR=/data/uploads ENTRYPOINT ["/entrypoint.sh"]