2018-01-20 02:08:14 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
LABEL description="This is a cc65 Docker container intended to be used for build pipelines."
|
|
|
|
|
2018-01-20 19:30:29 +00:00
|
|
|
ENV BUILD_DIR="/tmp" \
|
2022-03-06 20:39:18 +00:00
|
|
|
CC65_VERSION="V2.19" \
|
2018-01-20 19:30:29 +00:00
|
|
|
NULIB2_VERSION="v3.1.0" \
|
2022-03-06 20:50:59 +00:00
|
|
|
AC_VERSION="1.7.0"
|
2018-01-20 19:30:29 +00:00
|
|
|
|
|
|
|
COPY bin /usr/local/bin
|
2018-01-20 02:08:14 +00:00
|
|
|
|
2022-03-06 05:00:26 +00:00
|
|
|
RUN apk add --no-cache build-base binutils && \
|
2018-01-20 19:30:29 +00:00
|
|
|
echo "Building CC65 ${CC65_VERSION}" && \
|
|
|
|
cd ${BUILD_DIR} && \
|
|
|
|
wget https://github.com/cc65/cc65/archive/${CC65_VERSION}.tar.gz && \
|
|
|
|
tar xzf ${CC65_VERSION}.tar.gz && \
|
2018-01-20 02:08:14 +00:00
|
|
|
cd cc65* && \
|
2018-03-17 22:39:02 +00:00
|
|
|
env PREFIX=/usr/local make && \
|
|
|
|
env PREFIX=/usr/local make install && \
|
2018-01-20 19:30:29 +00:00
|
|
|
echo "Building NuLib2 ${NULIB2_VERSION}" && \
|
|
|
|
cd ${BUILD_DIR} && \
|
|
|
|
wget https://github.com/fadden/nulib2/archive/${NULIB2_VERSION}.tar.gz && \
|
|
|
|
tar xzf ${NULIB2_VERSION}.tar.gz && \
|
|
|
|
cd nulib2* && \
|
|
|
|
cd nufxlib && \
|
|
|
|
./configure && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
cd ../nulib2 && \
|
|
|
|
./configure && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
mkdir -p /usr/local/share/java && \
|
2022-03-06 20:50:59 +00:00
|
|
|
echo "Adding AppleCommander 'ac'" && \
|
|
|
|
wget https://github.com/AppleCommander/AppleCommander/releases/download/${AC_VERSION}/AppleCommander-ac-${AC_VERSION}.jar && \
|
2018-03-17 22:39:02 +00:00
|
|
|
mv AppleCommander-ac-${AC_VERSION}.jar /usr/local/share/java/AppleCommander-ac.jar && \
|
2022-03-06 20:50:59 +00:00
|
|
|
echo "Adding AppleCommander 'acx'" && \
|
|
|
|
wget https://github.com/AppleCommander/AppleCommander/releases/download/${AC_VERSION}/AppleCommander-acx-${AC_VERSION}.jar && \
|
|
|
|
mv AppleCommander-acx-${AC_VERSION}.jar /usr/local/share/java/AppleCommander-acx.jar && \
|
2018-01-20 19:30:29 +00:00
|
|
|
echo "Cleaning up" && \
|
|
|
|
cd ${BUILD_DIR} && \
|
|
|
|
rm -rf * && \
|
2018-01-20 02:08:14 +00:00
|
|
|
apk del --no-cache build-base && \
|
2018-01-20 19:30:29 +00:00
|
|
|
echo "Adding other required build-tools exclusive of other C compilers!" && \
|
2022-03-06 20:50:59 +00:00
|
|
|
apk add --no-cache make openjdk11-jre && \
|
2018-01-20 19:30:29 +00:00
|
|
|
chmod +x /usr/local/bin/*
|