Skip to content

Instantly share code, notes, and snippets.

@RaD
Created November 2, 2018 08:30
Show Gist options
  • Save RaD/51dbdd3dc4ff5baf49026d7184a6f05a to your computer and use it in GitHub Desktop.
Save RaD/51dbdd3dc4ff5baf49026d7184a6f05a to your computer and use it in GitHub Desktop.
How to build Docker image in the Docker container
FROM alpine:3.8
MAINTAINER Ruslan Popov <[email protected]>
ARG SOURCE_VERSION=UNSPECIFIED
ARG SOURCE_COMMIT=UNSPECIFIED
ENV \
SOURCE_VERSION=${SOURCE_VERSION} \
SOURCE_COMMIT=${SOURCE_COMMIT} \
RUN apk update && \
apk add --no-cache --progress \
make \
git \
docker \
ca-certificates && \
rm -rf /var/cache/apk/*
COPY ca.pem /usr/local/share/ca-certificates/halfakop.crt
RUN update-ca-certificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment