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
|
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 /
|
||||||
|
|
||||||
|
|
|
@ -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 /
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue