feat:#36 added protobuf communication for modules

This commit is contained in:
Elmar Kresse
2024-06-17 00:59:33 +02:00
parent 8548a537ec
commit fad85f2884
18 changed files with 1286 additions and 59 deletions

View File

@@ -24,8 +24,8 @@ RUN apk add --no-cache --update go gcc g++
COPY go.mod go.sum ./
RUN go mod download
COPY ical/*.go ./ical/
COPY ical/. ./ical
COPY common/. ./common
RUN CGO_ENABLED=1 GOOS=linux go build -o /htwkalender-ical ical/main.go
# production stage
@@ -46,7 +46,7 @@ COPY --chown=$USER:$USER --from=build /htwkalender-ical ./
# Expose port 8091 to the outside world
EXPOSE 8091
ENTRYPOINT ["./htwkalender-ical"]
ENTRYPOINT ["./main"]
FROM golang:1.21.6 AS dev
@@ -59,8 +59,8 @@ COPY go.mod go.sum ./
RUN go mod download
# Copy the source from the current directory to the Working Directory inside the container
COPY ical/*.go ./ical/
COPY ical/. ./ical
COPY common/. ./common
# Build the Go app
RUN CGO_ENABLED=1 GOOS=linux go build -o /htwkalender-ical ical/main.go