Merge pull request #343 from phs/phs/docker

Have a docker file
This commit is contained in:
Antonio Niño Díaz
2019-07-04 23:07:16 +01:00
committed by GitHub
3 changed files with 34 additions and 0 deletions

7
.dockerignore Normal file
View File

@@ -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

View File

@@ -43,3 +43,5 @@ Other contributors
- YamaArashi <shadow962@live.com>
- yenatch <yenatch@gmail.com>
- phs <phil@philhsmith.com>

25
Dockerfile Normal file
View File

@@ -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/