...
This commit is contained in:
14
test-feed/Dockerfile
Normal file
14
test-feed/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user