Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 1adc3f5

Browse files
committed
refactor: Use alpine everywhere
1 parent ad2de97 commit 1adc3f5

File tree

7 files changed

+21
-26
lines changed

7 files changed

+21
-26
lines changed

Dockerfile.dev

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM --platform=$TARGETPLATFORM golang AS build
2+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
33
ARG DIBS_TARGET
44
ARG TARGETPLATFORM
55

66
WORKDIR /app
77

8-
RUN apt update
9-
RUN apt install -y protobuf-compiler gcc make git file
8+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
109

1110
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1211
RUN install /tmp/dibs /usr/local/bin

Dockerfile.dhclientctl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# syntax=docker/dockerfile:experimental
22
# Build container
3-
FROM --platform=$TARGETPLATFORM golang AS build
3+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
44
ARG DIBS_TARGET
55
ARG TARGETPLATFORM
66

77
WORKDIR /app
88

9-
RUN apt update
10-
RUN apt install -y protobuf-compiler gcc make git file
9+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
1110

1211
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1312
RUN install /tmp/dibs /usr/local/bin
@@ -23,7 +22,7 @@ RUN dibs -generateSources
2322
RUN dibs -build
2423

2524
# Run container
26-
FROM --platform=$TARGETPLATFORM debian
25+
FROM --platform=$TARGETPLATFORM alpine
2726
ARG DIBS_TARGET
2827
ARG TARGETPLATFORM
2928

Dockerfile.dhclientd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# syntax=docker/dockerfile:experimental
22
# Build container
3-
FROM --platform=$TARGETPLATFORM golang AS build
3+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
44
ARG DIBS_TARGET
55
ARG TARGETPLATFORM
66

77
WORKDIR /app
88

9-
RUN apt update
10-
RUN apt install -y protobuf-compiler gcc make git file
9+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
1110

1211
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1312
RUN install /tmp/dibs /usr/local/bin
@@ -23,7 +22,7 @@ RUN dibs -generateSources
2322
RUN dibs -build
2423

2524
# Run container
26-
FROM --platform=$TARGETPLATFORM debian
25+
FROM --platform=$TARGETPLATFORM alpine
2726
ARG DIBS_TARGET
2827
ARG TARGETPLATFORM
2928

Dockerfile.dhcpdctl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# syntax=docker/dockerfile:experimental
22
# Build container
3-
FROM --platform=$TARGETPLATFORM golang AS build
3+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
44
ARG DIBS_TARGET
55
ARG TARGETPLATFORM
66

77
WORKDIR /app
88

9-
RUN apt update
10-
RUN apt install -y protobuf-compiler gcc make git file
9+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
1110

1211
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1312
RUN install /tmp/dibs /usr/local/bin
@@ -23,7 +22,7 @@ RUN dibs -generateSources
2322
RUN dibs -build
2423

2524
# Run container
26-
FROM --platform=$TARGETPLATFORM debian
25+
FROM --platform=$TARGETPLATFORM alpine
2726
ARG DIBS_TARGET
2827
ARG TARGETPLATFORM
2928

Dockerfile.dhcpdd

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# syntax=docker/dockerfile:experimental
22
# Build container
3-
FROM --platform=$TARGETPLATFORM golang AS build
3+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
44
ARG DIBS_TARGET
55
ARG TARGETPLATFORM
66

77
WORKDIR /app
88

9-
RUN apt update
10-
RUN apt install -y protobuf-compiler gcc make git file
9+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
1110

1211
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1312
RUN install /tmp/dibs /usr/local/bin
@@ -23,7 +22,7 @@ RUN dibs -generateSources
2322
RUN dibs -build
2423

2524
# Run container
26-
FROM --platform=$TARGETPLATFORM debian
25+
FROM --platform=$TARGETPLATFORM alpine
2726
ARG DIBS_TARGET
2827
ARG TARGETPLATFORM
2928

Dockerfile.integrationTests

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# syntax=docker/dockerfile:experimental
22
# Build container
3-
FROM --platform=$TARGETPLATFORM golang AS build
3+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
44
ARG DIBS_TARGET
55
ARG TARGETPLATFORM
66

77
WORKDIR /app
88

9-
RUN apt update
10-
RUN apt install -y protobuf-compiler gcc make git file
9+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
1110

1211
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1312
RUN install /tmp/dibs /usr/local/bin
@@ -23,12 +22,14 @@ RUN dibs -generateSources
2322
RUN dibs -build
2423

2524
# Run container
26-
FROM --platform=$TARGETPLATFORM golang
25+
FROM --platform=$TARGETPLATFORM golang:alpine
2726
ARG DIBS_TARGET
2827
ARG TARGETPLATFORM
2928

3029
WORKDIR /app
3130

31+
RUN apk add -u curl
32+
3233
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
3334
RUN install /tmp/dibs /usr/local/bin
3435

Dockerfile.unitTests

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# syntax=docker/dockerfile:experimental
2-
FROM --platform=$TARGETPLATFORM golang AS build
2+
FROM --platform=$TARGETPLATFORM golang:alpine AS build
33
ARG DIBS_TARGET
44
ARG TARGETPLATFORM
55

66
WORKDIR /app
77

8-
RUN apt update
9-
RUN apt install -y protobuf-compiler gcc make git file
8+
RUN apk add -u curl protoc gcc make git perl musl-dev linux-headers file
109

1110
RUN curl -Lo /tmp/dibs https://github.com/pojntfx/dibs/releases/latest/download/dibs-linux-amd64
1211
RUN install /tmp/dibs /usr/local/bin

0 commit comments

Comments
 (0)