Unverified Commit d74e040c authored by Sheogorath's avatar Sheogorath
Browse files

Use alpine as base image

In order to minimize the attack surface and to keep the image size 
small, using alpine linux should be the better choice.

This patch switches to an alpine base image with minimal dependences for 
building the golang application.
parent e6cbf23a
FROM golang
FROM golang:1.12.1-alpine
RUN true \
&& apk add --no-cache --virtual .build-utils git make \
&& git clone https://github.com/m13253/dns-over-https.git --depth 1 -b "$VERSION" \
&& cd dns-over-https \
&& make \
&& apk del .build-utils \
&& true
COPY ./entrypoint.sh /usr/local/bin/entrypoint
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment