forked from mtusi2026/mtusi2026lab5
ops: run and monitor Redis Streams workers
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN go build -p=1 -o /out/messenger ./cmd/messenger
|
||||
RUN go build -p=1 -o /out/lab4experiment ./cmd/lab4experiment
|
||||
RUN go build -p=1 -o /out/lab5experiment ./cmd/lab5experiment
|
||||
|
||||
FROM build AS test
|
||||
|
||||
@@ -35,7 +35,7 @@ FROM alpine:3.24.2
|
||||
|
||||
RUN addgroup -S app && adduser -S -G app -u 10001 app
|
||||
COPY --from=build --chown=app:app /out/messenger /app/messenger
|
||||
COPY --from=build --chown=app:app /out/lab4experiment /app/lab4experiment
|
||||
COPY --from=build --chown=app:app /out/lab5experiment /app/lab5experiment
|
||||
|
||||
USER app
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user