Skip to content

Commit

Permalink
CR-15397-alp (#14)
Browse files Browse the repository at this point in the history
* move to debian

* add busybox
  • Loading branch information
yaroslav-codefresh authored Dec 4, 2022
1 parent aedbd9d commit f150fab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
FROM golang:1.17.8-alpine3.15 as build
FROM golang:1.17.8-bullseye as build

WORKDIR /pikolo

RUN apk add git gcc g++
RUN apt-get update -y \
&& apt-get install -y git gcc g++

COPY go.mod .
RUN go mod download

COPY . .
RUN env CGO_ENABLED=0 go build -ldflags="-s -w"

FROM alpine:3.16
FROM debian:bullseye-slim

RUN apk add --update ca-certificates
RUN apt-get update -y \
&& apt-get install -y ca-certificates busybox \
&& ln -s /bin/busybox /usr/bin/[[

COPY --from=build /pikolo/pikolo /usr/local/bin
COPY VERSION /VERSION

LABEL io.codefresh.engine="true"

RUN adduser -D -h /home/cfu -s /bin/bash cfu
RUN adduser --gecos "" --disabled-password --home /home/cfu --shell /bin/bash cfu

USER cfu

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.5
0.13.6

0 comments on commit f150fab

Please sign in to comment.