-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
63 lines (49 loc) · 1.27 KB
/
Dockerfile.dev
File metadata and controls
63 lines (49 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Development/Demo Dockerfile for agent-wrapper
# This includes Python and demo agent for local testing
FROM golang:1.23-bookworm
# Set environment - disable all proxy settings
ENV GOPROXY=https://goproxy.cn,direct
ENV GOSUMDB=off
ENV DEBIAN_FRONTEND=noninteractive
# Disable all proxy settings
ENV HTTP_PROXY= \
HTTPS_PROXY= \
http_proxy= \
https_proxy= \
ALL_PROXY= \
all_proxy= \
NO_PROXY=*
# Install Python 3 and other tools
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy source and build
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /app/wrapper ./cmd/wrapper
# Copy demo agent
COPY examples/ /app/examples/
# Make demo agent executable
RUN chmod +x /app/examples/demo-agent.py
RUN chmod +x /app/examples/*.sh
# Create working directory for agents
RUN mkdir -p /app/agent
# Set default environment for demo mode
ENV DEMO_MODE=true
ENV PORT=:8080
ENV AGENT_PORT=:9000
# Disable proxy for runtime (prevents connection issues)
ENV HTTP_PROXY=
ENV HTTPS_PROXY=
ENV http_proxy=
ENV https_proxy=
ENV NO_PROXY=*
# Expose ports
EXPOSE 8080 9000
# Default to demo mode
CMD ["/app/wrapper"]