Skip to content

Commit

Permalink
Fix broken Dockerfile for clone container
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw committed Dec 5, 2023
1 parent 934d015 commit 80fbaa1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions HadesCloneContainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 80fbaa1

Please sign in to comment.