We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c7e0e commit f3575f5Copy full SHA for f3575f5
1 file changed
Dockerfile
@@ -4,19 +4,15 @@ FROM golang:1.23-alpine AS builder
4
WORKDIR /workspace
5
# Copy the entire workspace (to utilize go.work for dependency management)
6
COPY . .
7
-# Navigate to the project directory and build the binary
8
-WORKDIR /workspace/proxygate
9
RUN go build -o /proxygate
10
11
# Stage 2: Runtime
12
FROM alpine:latest
13
LABEL authors="Rebel028"
14
-ARG SERVICE
15
-ENV SERVICE=proxygate
16
# Set the working directory for the runtime container
17
WORKDIR /app
18
# Copy the built binary from the builder stage
19
-COPY --from=builder /proxygate /app/proxygate
+COPY --from=builder /workspace/proxygate /app/proxygate
20
# Set permissions and expose the entry point
21
RUN chmod +x /app/proxygate
22
ENTRYPOINT "/app/proxygate"
0 commit comments