mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add dockerfile to build and run RGBDS (#1167)
This commit is contained in:
34
Dockerfile
34
Dockerfile
@@ -1,24 +1,14 @@
|
|||||||
# This file is part of RGBDS.
|
FROM debian:11-slim
|
||||||
#
|
LABEL org.opencontainers.image.source=https://github.com/gbdev/rgbds
|
||||||
# Copyright (c) 2018-2019, Phil Smith and RGBDS contributors.
|
ARG version=0.6.1
|
||||||
#
|
|
||||||
# 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
|
|
||||||
WORKDIR /rgbds
|
WORKDIR /rgbds
|
||||||
RUN make Q='' all
|
|
||||||
|
|
||||||
FROM alpine:latest
|
COPY . .
|
||||||
RUN apk add --update \
|
|
||||||
libpng
|
RUN apt-get update && \
|
||||||
COPY --from=0 \
|
apt-get install sudo make cmake gcc build-essential -y
|
||||||
/rgbds/rgbasm \
|
|
||||||
/rgbds/rgbfix \
|
RUN ./.github/scripts/install_deps.sh ubuntu-20.04
|
||||||
/rgbds/rgblink \
|
RUN make -j WARNFLAGS="-Wall -Wextra -pedantic -static" PKG_CONFIG="pkg-config --static" Q=
|
||||||
/rgbds/rgbgfx \
|
|
||||||
/bin/
|
RUN tar caf rgbds-${version}-linux-x86_64.tar.xz --transform='s#.*/##' rgbasm rgblink rgbfix rgbgfx man/* .github/scripts/install.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user