update build
This commit is contained in:
parent
5291903718
commit
8a11deed01
|
@ -1,7 +1,7 @@
|
||||||
variables:
|
variables:
|
||||||
- &golang "golang:1.19"
|
- &golang "golang:1.19"
|
||||||
- &volumes
|
- &volumes
|
||||||
- /var/www/html/artifacts/capture/deblan:/artifacts
|
- /var/www/html/artifacts/deblan/capture:/artifacts
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19 as builder
|
FROM golang:1.21-bullseye as builder
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
@ -7,7 +7,7 @@ RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN BUILD_DIR=/app make
|
RUN BUILD_DIR=/app make
|
||||||
|
|
||||||
FROM debian:stable-slim
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
COPY --from=builder /app/capture-linux-amd64 /usr/bin/capture
|
COPY --from=builder /app/capture-linux-amd64 /usr/bin/capture
|
||||||
|
|
Loading…
Reference in a new issue