aboutsummaryrefslogtreecommitdiffstats
path: root/service/container/Dockerfile
blob: c932e6654176330288c92e2e4ef2f8b4855dd1bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]