2023-04-10 01:31:44 +00:00
|
|
|
# Set up a packer image in Docker.
|
|
|
|
FROM ubuntu:22.04
|
2023-04-10 03:05:28 +00:00
|
|
|
LABEL org.opencontainers.image.authors=kyle@imap.cc
|
2023-04-10 01:31:44 +00:00
|
|
|
|
2023-04-11 06:02:14 +00:00
|
|
|
RUN apt-get update && apt-get -y install git curl sudo xz-utils
|
2023-04-10 04:19:33 +00:00
|
|
|
RUN git clone https://git.wntrmute.dev/kyle/bladerunner
|
|
|
|
RUN bladerunner/tools/install-go.sh
|
2023-04-10 03:05:28 +00:00
|
|
|
|
2023-04-11 22:31:53 +00:00
|
|
|
ADD . /packer
|
|
|
|
WORKDIR /packer
|
2023-04-11 06:02:14 +00:00
|
|
|
VOLUME build
|
2023-04-10 22:34:38 +00:00
|
|
|
RUN ./install-packer.sh
|
2023-04-11 22:31:53 +00:00
|
|
|
WORKDIR /packer/build/packer-builder-arm
|
2023-04-10 01:31:44 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/env", "bash"]
|