File: Dockerfile

package info (click to toggle)
xq 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 596 kB
  • sloc: xml: 196; sh: 35; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang:1.23 as builder

ARG CGO_ENABLED=0

WORKDIR /opt

COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build

FROM ubuntu:22.04

COPY --from=builder /opt/xq /usr/local/bin/xq

ENTRYPOINT ["bash"]