mirror of
https://github.com/AmigaPorts/docker-amiga-gcc.git
synced 2025-11-21 10:05:00 +00:00
Test to separate the main with the common
This commit is contained in:
28
common.docker
Normal file
28
common.docker
Normal file
@ -0,0 +1,28 @@
|
||||
MAINTAINER Marlon Beijer "marlon@amigadev.com"
|
||||
|
||||
RUN apt-get update && apt-get install -y apt-utils cmake wget git make
|
||||
RUN echo "root:root" | chpasswd
|
||||
|
||||
ENV CROSS_ROOT /opt/${CROSS_PFX}
|
||||
|
||||
# Temporary fix
|
||||
RUN rm /opt/${CROSS_PFX} ; ln -s /opt/amiga /opt/${CROSS_PFX}
|
||||
|
||||
WORKDIR /work
|
||||
ENTRYPOINT ["/entry/entrypoint.sh"]
|
||||
|
||||
COPY ../imagefiles/cmake.sh /usr/local/bin/cmake
|
||||
COPY ../imagefiles/ccmake.sh /usr/local/bin/ccmake
|
||||
COPY ../imagefiles/entrypoint.sh /entry/
|
||||
|
||||
|
||||
ENV AS=${CROSS_ROOT}/bin/${CROSS_PFX}-as \
|
||||
LD=${CROSS_ROOT}/bin/${CROSS_PFX}-ld \
|
||||
AR=${CROSS_ROOT}/bin/${CROSS_PFX}-ar \
|
||||
CC=${CROSS_ROOT}/bin/${CROSS_PFX}-gcc \
|
||||
CXX=${CROSS_ROOT}/bin/${CROSS_PFX}-g++ \
|
||||
RANLIB=${CROSS_ROOT}/bin/${CROSS_PFX}-ranlib
|
||||
|
||||
COPY ../dependencies/toolchains/${CROSS_PFX}.cmake ${CROSS_ROOT}/lib/
|
||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/lib/${CROSS_PFX}.cmake
|
||||
ENV CMAKE_PREFIX_PATH /opt/${CROSS_PFX}:/opt/${CROSS_PFX}/usr
|
||||
Reference in New Issue
Block a user