36 lines
976 B
Docker
36 lines
976 B
Docker
# syntax=docker/dockerfile:1.3
|
|
FROM docker.io/immawanderer/archlinux:linux-amd64
|
|
|
|
ARG BUILD_DATE
|
|
ARG VCS_REF
|
|
|
|
LABEL description="Container image for building Go projects based on docker.io/immawanderer/archlinux"
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
org.label-schema.vcs-url="https://git.dotya.ml/wanderer-containers/archlinux-go.git" \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.license=GPL-3.0
|
|
|
|
# get pkg db, install git, Go and gcc (for GCO), clear pacman's cache and
|
|
# non-essential parts of the OS (needs improvement) and call it a day.
|
|
RUN pacman -Sy \
|
|
--noconfirm \
|
|
--needed \
|
|
git \
|
|
gcc \
|
|
go \
|
|
&& \
|
|
\
|
|
pacman -Scc \
|
|
--noconfirm; \
|
|
\
|
|
\
|
|
rm -rf /usr/share/zoneinfo/*; \
|
|
find /. -name "*~" -type f -delete > /dev/null 2>&1; \
|
|
find /usr/share/terminfo/. -type f -delete \
|
|
! -name "*xterm*" ! -name "*screen*" ! -name "*screen*"
|
|
|
|
WORKDIR /
|
|
|
|
# vim: ft=dockerfile
|