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

View file

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