-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dockerfile to build and run RGBDS (#1167)
- Loading branch information
Showing
1 changed file
with
12 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,14 @@ | ||
# 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 \ | ||
bison \ | ||
libpng-dev | ||
COPY . /rgbds | ||
FROM debian:11-slim | ||
LABEL org.opencontainers.image.source=https://github.com/gbdev/rgbds | ||
ARG version=0.6.1 | ||
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/ | ||
COPY . . | ||
|
||
RUN apt-get update && \ | ||
apt-get install sudo make cmake gcc build-essential -y | ||
|
||
RUN ./.github/scripts/install_deps.sh ubuntu-20.04 | ||
RUN make -j WARNFLAGS="-Wall -Wextra -pedantic -static" PKG_CONFIG="pkg-config --static" Q= | ||
|
||
RUN tar caf rgbds-${version}-linux-x86_64.tar.xz --transform='s#.*/##' rgbasm rgblink rgbfix rgbgfx man/* .github/scripts/install.sh |