Skip to content

Commit b567d27

Browse files
author
elkaboussi
committed
add compose support
1 parent bf4e2d7 commit b567d27

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

.dockerignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.git/
2+
.idea/
3+
.github/
4+
.vscode/
5+
bin/
6+
build/
7+
.gitignore
8+
.dockerignore
9+
compose.yml
10+
Dockerfile
11+
README.md

Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
FROM alpine:latest
1+
FROM gcc:10-bookworm
22

33
WORKDIR /app
44

5-
RUN apk add libc-dev readline-dev make gcc
6-
75
COPY . .
86

97
RUN make
108

119
ENTRYPOINT ["./minibash"]
12-

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
- with Makefile
1010
`make && ./minibash`
1111

12+
* If you have docker simply run `docker compose run --rm minibash`

compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
services:
3+
minibash:
4+
container_name: minibash
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
volumes:
9+
- ./:/app
10+
tty: true

0 commit comments

Comments
 (0)