sim-modem/Dockerfile

16 lines
256 B
Docker
Raw Permalink Normal View History

2024-07-22 15:38:40 +00:00
FROM golang:1.22.5
2024-07-22 15:15:20 +00:00
WORKDIR /app
2024-07-23 09:22:53 +00:00
COPY ./ ./
2024-07-22 15:15:20 +00:00
RUN go mod download
2024-07-23 09:22:53 +00:00
2024-07-29 11:02:06 +00:00
RUN apt-get update
RUN apt-get install -y iputils-ping
2024-07-29 11:02:06 +00:00
RUN apt-get install -y ppp
RUN apt-get install -y net-tools
2024-07-22 15:15:20 +00:00
2024-07-22 15:53:34 +00:00
RUN CGO_ENABLED=0 GOOS=linux go build -o /modem-test
2024-07-22 15:38:40 +00:00
2024-07-29 11:02:06 +00:00
CMD ["/modem-test"]