summaryrefslogtreecommitdiff
path: root/idvoc-2025/CommentsInteractor/Dockerfile
blob: 15f9412e12f55c3988d2b85a4c63646111877944 (plain)
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 reg.undercloud.cri.epita.fr/docker/golang:1.24.3-alpine

LABEL org.opencontainers.image.authors="martial.simon@epita.fr"

RUN apk --no-cache add curl bash

WORKDIR /usr/local/app

COPY go.mod go.sum main.go ./

RUN go install

# Setup an app user so the container doesn't run as the root user
RUN adduser -D app
USER app

EXPOSE 9000

ENV COMMENTS_ENGINE_ENDPOINT="commentsengine:8000"
ENV HOST="0.0.0.0"
ENV PORT=9000

# Run the app when starting a container
CMD ["CommentsInteractor"]