forked from TrueCloudLab/frostfs-http-gw
[#236] Switch base image for OCI container to Debian
Related: TrueCloudLab/frostfs-node#1724 Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
dbb1bcad00
commit
b53eade89e
2 changed files with 15 additions and 7 deletions
|
@ -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 /
|
||||
|
||||
|
|
|
@ -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 /
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue