Skip to content

Commit f3575f5

Browse files
committed
fixed publish script
1 parent 81c7e0e commit f3575f5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ FROM golang:1.23-alpine AS builder
44
WORKDIR /workspace
55
# Copy the entire workspace (to utilize go.work for dependency management)
66
COPY . .
7-
# Navigate to the project directory and build the binary
8-
WORKDIR /workspace/proxygate
97
RUN go build -o /proxygate
108

119
# Stage 2: Runtime
1210
FROM alpine:latest
1311
LABEL authors="Rebel028"
14-
ARG SERVICE
15-
ENV SERVICE=proxygate
1612
# Set the working directory for the runtime container
1713
WORKDIR /app
1814
# Copy the built binary from the builder stage
19-
COPY --from=builder /proxygate /app/proxygate
15+
COPY --from=builder /workspace/proxygate /app/proxygate
2016
# Set permissions and expose the entry point
2117
RUN chmod +x /app/proxygate
2218
ENTRYPOINT "/app/proxygate"

0 commit comments

Comments
 (0)