Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose and Dockerfile #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ compile_commands.json
gunzip
gzip
zcat
*~
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian:bookworm-slim as stage

RUN apt-get update

RUN apt-get install -y \
wget \
build-essential \
gcc-multilib \
lib32ncurses-dev \
cpio \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /build

COPY . .

RUN wget https://archive.org/download/123-unix/123UNIX1.IMG \
&& wget https://archive.org/download/123-unix/123UNIX2.IMG \
&& wget https://archive.org/download/123-unix/123UNIX3.IMG \
&& wget https://archive.org/download/123-unix/123UNIX4.IMG \
&& wget https://archive.org/download/123-unix/123UNIX5.IMG

RUN ./binutils.sh \
&& ./extract.sh

RUN make install \
&& cd / \
&& rm -rf /build

WORKDIR /work

11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3.9"

services:
123r3:
build:
context: .
volumes:
- .:/work
stdin_open: true
tty: true
command: "123"