-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 1.06 KB
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 1.06 KB
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
37
38
# Dockerfile multi-arch para Open Watcom v2
FROM --platform=$BUILDPLATFORM debian:bookworm AS builder
ARG TARGETARCH
RUN apt-get update && apt-get install -y \
git clang make g++ cmake dosbox \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
RUN git clone https://github.com/open-watcom/open-watcom-v2.git
WORKDIR /build/open-watcom-v2
# Configuración para diferentes arquitecturas
RUN if [ "$TARGETARCH" = "amd64" ]; then \
echo "OWTOOLS=GCC" >> setvars.sh; \
else \
echo "OWTOOLS=CLANG" >> setvars.sh; \
fi
RUN echo "export OWDOSBOX=dosbox" >> setvars.sh
RUN ./build.sh
RUN ./build.sh rel os_dos
# Etapa final
FROM debian:bookworm-slim
COPY --from=builder /build/open-watcom-v2/rel /opt/watcom
ENV WATCOM=/opt/watcom \
PATH="$PATH:/opt/watcom/arml64:/opt/watcom/binl:/opt/watcom/binl64" \
EDDAT=/opt/watcom/eddat \
INCLUDE=/opt/watcom/h
RUN apt-get update && apt-get install -y nasm 7zip dosbox
# Verificación de instalación
RUN find . -name wcl386
RUN wcl386 -h > /dev/null && echo "Compilador verificado"
RUN rm -rf /var/lib/apt/lists/*