From 80fbaa1cff94a7fbedbe0876a88a9e0855b3227b Mon Sep 17 00:00:00 2001 From: Robert Jandow Date: Tue, 5 Dec 2023 14:30:17 +0100 Subject: [PATCH] Fix broken Dockerfile for clone container --- HadesCloneContainer/Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/HadesCloneContainer/Dockerfile b/HadesCloneContainer/Dockerfile index 10927fc..52ab7e3 100644 --- a/HadesCloneContainer/Dockerfile +++ b/HadesCloneContainer/Dockerfile @@ -5,14 +5,13 @@ FROM golang:1.21-alpine AS builder WORKDIR /app # Copy go.mod and go.sum files -COPY go.mod go.sum ./ +COPY ./HadesCloneContainer/go.mod ./HadesCloneContainer/go.sum ./ RUN go mod download # Copy the Go application source code into the container -COPY ./HadesCloneContainer ./HadesCloneContainer +COPY ./HadesCloneContainer ./ # Build the Go application -WORKDIR /app/HadesCloneContainer RUN go build -o hades-clone . # Start a new stage for the minimal runtime container @@ -22,7 +21,7 @@ FROM alpine:latest WORKDIR /app # Copy the built binary from the builder container into the minimal runtime container -COPY --from=builder /app/HadesCloneContainer/hades-clone . +COPY --from=builder /app/hades-clone . # Ensure the binary is executable RUN chmod +x /app/hades-clone