-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
elkaboussi
committed
Mar 28, 2024
1 parent
bf4e2d7
commit b567d27
Showing
4 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.git/ | ||
.idea/ | ||
.github/ | ||
.vscode/ | ||
bin/ | ||
build/ | ||
.gitignore | ||
.dockerignore | ||
compose.yml | ||
Dockerfile | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
FROM alpine:latest | ||
FROM gcc:10-bookworm | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add libc-dev readline-dev make gcc | ||
|
||
COPY . . | ||
|
||
RUN make | ||
|
||
ENTRYPOINT ["./minibash"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
- with Makefile | ||
`make && ./minibash` | ||
|
||
* If you have docker simply run `docker compose run --rm minibash` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
services: | ||
minibash: | ||
container_name: minibash | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- ./:/app | ||
tty: true |