From 9bd7ecad4c0ac02e4c0fa87cf3e4214f6048a642 Mon Sep 17 00:00:00 2001 From: Phil Smith Date: Sat, 11 May 2019 17:21:48 -0700 Subject: [PATCH] Have a docker file --- .dockerignore | 7 +++++++ CONTRIBUTORS.rst | 2 ++ Dockerfile | 25 +++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..84ab1203 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +# This file is part of RGBDS. +# +# Copyright (c) 2018-2019, Phil Smith and RGBDS contributors. +# +# SPDX-License-Identifier: MIT +.git +docs diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index ae8a923c..04c853c3 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -41,3 +41,5 @@ Other contributors - YamaArashi - yenatch + +- phs diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..2f44782b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# This file is part of RGBDS. +# +# Copyright (c) 2018-2019, Phil Smith and RGBDS contributors. +# +# SPDX-License-Identifier: MIT +# docker build -t rgbds:vX.X.X-alpine +FROM alpine:latest +RUN apk add --update \ + build-base \ + byacc \ + flex \ + libpng-dev +COPY . /rgbds +WORKDIR /rgbds +RUN make Q='' all + +FROM alpine:latest +RUN apk add --update \ + libpng +COPY --from=0 \ + /rgbds/rgbasm \ + /rgbds/rgbfix \ + /rgbds/rgblink \ + /rgbds/rgbgfx \ + /bin/