aboutsummaryrefslogtreecommitdiffstats
path: root/service/container/Dockerfile
blob: ba6535ff9494974eb85f9a004c873eeb6e39a7f4 (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 +x /entrypoint.sh

COPY cleaner.sh /
RUN chmod +x /cleaner.sh

COPY src/ /service/

WORKDIR /service/
RUN make clean && make

EXPOSE 9000
ENV RESULTDIR=/data/uploads

ENTRYPOINT ["/entrypoint.sh"]