22 lines
760 B
Docker
22 lines
760 B
Docker
# Base Golang development image
|
|
# Written by Wyatt J. Miller, 2024
|
|
# This image is opinionated, but you're welcome to customize as much as you like
|
|
|
|
# Get my custom base image from scm
|
|
FROM scm.wyattjmiller.com/wymiller/base_container:latest
|
|
|
|
# Label it right, ya know?
|
|
ENV NAME=custom_base_golang_image VERSION=1.0
|
|
LABEL com.github.containers.toolbox="true" \
|
|
com.redhat.component="$NAME" \
|
|
name="$NAME" \
|
|
version="$VERSION" \
|
|
usage="Wyatt's base Golang image" \
|
|
summary="Wyatt's custom base Golang image" \
|
|
maintainer="Wyatt J. Miller <wyatt@wyattjmiller.com>" \
|
|
vendor="Miller Web Solutions"
|
|
|
|
# Download Golang and set the GOPATH
|
|
RUN dnf install golang -y -q
|
|
RUN fish -c "set -gx GOPATH /var/home/wyatt/Source/go/"
|