Skip to content

Commit

Permalink
add compose support
Browse files Browse the repository at this point in the history
  • Loading branch information
elkaboussi committed Mar 28, 2024
1 parent bf4e2d7 commit b567d27
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .dockerignore
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
5 changes: 1 addition & 4 deletions Dockerfile
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"]

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- with Makefile
`make && ./minibash`

* If you have docker simply run `docker compose run --rm minibash`
10 changes: 10 additions & 0 deletions compose.yml
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

0 comments on commit b567d27

Please sign in to comment.