Switch base image for OCI container to Debian #236

Open
potyarkin wants to merge 1 commit from potyarkin/frostfs-http-gw:feature/oci-base-debian into master
2 changed files with 15 additions and 7 deletions

View file

@ -1,7 +1,10 @@
FROM golang:1.24-alpine AS basebuilder FROM golang:1.24 AS builder
RUN apk add --update make bash ca-certificates RUN apt-get update && \
apt-get install --no-install-recommends -y \
FROM basebuilder AS builder bash \
ca-certificates \
&& \
rm -rf /var/lib/apt/lists/*
ENV GOGC=off ENV GOGC=off
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
ARG BUILD=now ARG BUILD=now
@ -13,7 +16,7 @@ COPY . /src
RUN make RUN make
# Executable image # Executable image
FROM scratch FROM debian:stable-slim
WORKDIR / WORKDIR /

View file

@ -1,5 +1,10 @@
FROM alpine FROM debian:stable-slim
RUN apk add --update --no-cache bash ca-certificates RUN apt-get update && \
apt-get install --no-install-recommends -y \
bash \
ca-certificates \
&& \
rm -rf /var/lib/apt/lists/*
WORKDIR / WORKDIR /