We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de17f60 commit b5da02fCopy full SHA for b5da02f
Dockerfile
@@ -22,8 +22,10 @@ COPY . .
22
# Copy built frontend files
23
COPY --from=frontend-builder /app/public ./public
24
25
+#ENV HTTP_PROXY=http://192.168.3.102:8080
26
+#ENV HTTPS_PROXY=http://192.168.3.102:8080
27
# Build backend
-RUN go build -o tiny-nav
28
+RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o tiny-nav
29
30
# Stage 3: Final Image
31
FROM alpine:latest
@@ -36,7 +38,6 @@ WORKDIR /app
36
38
37
39
# Copy built binary and frontend files
40
COPY --from=backend-builder /app/tiny-nav .
-RUN chmod +x tiny-nav
41
42
# Expose port
43
EXPOSE 58080
0 commit comments