forked from Ultimecia1463/zenith
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (31 loc) · 1.06 KB
/
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
37
38
39
# Use Ubuntu as the base image
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
# Install required tools and packages
RUN apt-get update && apt-get install -y \
build-essential \
nasm \
qemu-system-x86 \
bochs \
bochs-sdl \
xorriso \
wget \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /opt/zenith
# Copy project files to the container
COPY . .
RUN echo '#!/bin/bash\n' \
'wget https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/open-watcom-2_0-c-linux-x64 -O /tmp/open-watcom-installer\n' \
'chmod +x /tmp/open-watcom-installer\n' \
'/tmp/open-watcom-installer -f=override.inf -s\n' \
'rm /tmp/open-watcom-installer\n' \
'export WATCOM=/usr/bin/watcom\n' \
'export PATH=$PATH:$WATCOM/binl\n' \
'make\n' \
'bash run.sh' > /opt/zenith/start.sh
# Give execution permissions and run start.sh on container startup
RUN chmod +x /opt/zenith/start.sh
ENTRYPOINT ["/opt/zenith/start.sh"]
# Set the default command to run the start script
CMD ["/opt/zenith/start.sh"]