Skip to content

Commit 3acc2e2

Browse files
committed
Add CI for Price-feeder
1 parent 58ffcd5 commit 3acc2e2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Fetch base packages
2+
FROM golang:1.19-alpine AS builder
3+
ENV PACKAGES make git libc-dev gcc linux-headers
4+
RUN apk add --no-cache $PACKAGES
5+
WORKDIR /src/app/
6+
COPY . .
7+
# Build the binary
8+
RUN cd price-feeder && make install
9+
10+
FROM alpine:3.14
11+
RUN apk add bash curl jq
12+
COPY --from=builder /go/bin/price-feeder /usr/local/bin/
13+
EXPOSE 7171
14+
CMD ["price-feeder"]
15+
STOPSIGNAL SIGTERM

0 commit comments

Comments
 (0)