mirror of https://github.com/antonmedv/fx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
261 B
Docker
24 lines
261 B
Docker
6 months ago
|
FROM golang:latest as builder
|
||
|
|
||
|
WORKDIR /go
|
||
|
|
||
|
COPY go.mod go.sum ./
|
||
|
|
||
|
RUN go mod download
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN go build -o fx .
|
||
|
|
||
|
FROM alpine
|
||
|
|
||
|
RUN apk add --update nodejs
|
||
|
|
||
|
COPY --from=builder /go/fx /bin/fx
|
||
|
|
||
|
WORKDIR /data
|
||
|
|
||
|
ENV COLORTERM=truecolor
|
||
|
|
||
|
ENTRYPOINT ["/bin/fx"]
|