FROM golang:1.19.3

RUN chmod -R 755 "$GOPATH"

RUN DEBIAN_FRONTEND=noninteractive \
	apt update && apt install -y --no-install-recommends \
	autoconf \
	git \
	libtool \
	locales \
	make \
	awscli \
	rpm \
	ruby \
	ruby-dev \
	zip && \
	rm -rf /var/lib/apt/lists/*

RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
RUN locale-gen C.UTF-8 || true
ENV LANG=C.UTF-8

RUN gem install fpm
