15 lines
240 B
Docker
15 lines
240 B
Docker
FROM golang:1.21-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Create test program
|
|
COPY test_feed.go .
|
|
|
|
# Download dependencies
|
|
RUN go mod init test && go get github.com/gorilla/websocket
|
|
|
|
# Build test
|
|
RUN go build -o test_feed test_feed.go
|
|
|
|
CMD ["./test_feed"]
|