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

RUN mkdir /data

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"]