aboutsummaryrefslogtreecommitdiffstats
path: root/service/Dockerfile
blob: af3b17694bfa23688f61e87c5acf0929a1443a1e (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
25
26
FROM ubuntu:18.04

RUN apt update && apt install -y --no-install-recommends ncat gcc make libc6-dev libc6 libc-dev-bin

RUN addgroup --system service
RUN adduser --system --ingroup service --uid 1000 service

COPY entrypoint.sh /
RUN chmod 755 /entrypoint.sh

COPY cleaner /cleaner
RUN make -C /cleaner clean && make -C /cleaner
RUN cp /cleaner/cleaner /usr/bin/cleaner
run chmod +x /usr/bin/cleaner

COPY src/ /service/
RUN make -C /service clean && make -C /service
RUN chmod +x /service/build/stldoctor

WORKDIR /service/

ENV RESULTDIR=/data/uploads

EXPOSE 9000

ENTRYPOINT ["/entrypoint.sh"]