Adjust Dockerfile and pipeline.
This commit is contained in:
@@ -14,7 +14,7 @@ RUN go mod download
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN go build -o your-app-name .
|
||||
RUN go build -o harbormaster .
|
||||
|
||||
# Use a small base image for the final container
|
||||
FROM alpine:latest
|
||||
@@ -23,7 +23,7 @@ FROM alpine:latest
|
||||
WORKDIR /root/
|
||||
|
||||
# Copy the compiled binary from the builder stage
|
||||
COPY --from=builder /app/your-app-name .
|
||||
COPY --from=builder /app/harbormaster .
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in New Issue
Block a user