mirror of
https://github.com/antonmedv/fx
synced 2024-11-15 12:13:06 +00:00
24 lines
261 B
Docker
24 lines
261 B
Docker
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"]
|