From 967be9e750221ab2ab783f95df79bb26d290a45e Mon Sep 17 00:00:00 2001 From: Martial Simon Date: Mon, 15 Sep 2025 01:07:58 +0200 Subject: add: added projects --- idvoc-2025/CommentsInteractor/Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 idvoc-2025/CommentsInteractor/Dockerfile (limited to 'idvoc-2025/CommentsInteractor/Dockerfile') diff --git a/idvoc-2025/CommentsInteractor/Dockerfile b/idvoc-2025/CommentsInteractor/Dockerfile new file mode 100644 index 0000000..15f9412 --- /dev/null +++ b/idvoc-2025/CommentsInteractor/Dockerfile @@ -0,0 +1,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"] -- cgit v1.2.3