forked from z88dk/z88dk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
z88dk.Dockerfile
36 lines (27 loc) · 1.27 KB
/
z88dk.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# To create the image:
# $ docker build -t z88dk -f z88dk.Dockerfile .
# To run the container:
# $ docker run -v ${PWD}:/src/ -it z88dk <command>
FROM alpine:latest
LABEL Version="0.8" \
Date="2018-Apr-10" \
Docker_Version="18.03.0-ce-mac60 (23751)" \
Maintainer="Garrafon Software (@garrafonsoft)" \
Description="A basic Docker container to compile and use z88dk from GIT"
ENV Z88DK_PATH="/opt/z88dk"
RUN apk add --no-cache build-base libxml2 m4 curl gmp-dev gmp \
&& apk add --no-cache -t .build_deps bison flex libxml2-dev git subversion boost-dev texinfo \
perl-template-toolkit perl-app-cpanminus \
&& git clone --depth 1 --recursive https://github.com/z88dk/z88dk.git ${Z88DK_PATH}
RUN cpanm -l $HOME/perl5 --no-wget local::lib Template::Plugin::YAML
# Add, edit or uncomment the following lines to customize the z88dk compilation
# COPY clib_const.m4 ${Z88DK_PATH}/libsrc/_DEVELOPMENT/target/
# COPY config_sp1.m4 ${Z88DK_PATH}/libsrc/_DEVELOPMENT/target/zx/config/
RUN cd ${Z88DK_PATH} \
&& eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" \
&& chmod 777 build.sh \
&& BUILD_SDCC=1 BUILD_SDCC_HTTP=1 ./build.sh \
&& apk del .build_deps
ENV PATH="${Z88DK_PATH}/bin:${PATH}" \
ZCCCFG="${Z88DK_PATH}/lib/config/"
WORKDIR /src/