Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-BH committed Feb 13, 2023
1 parent 67a3420 commit 09cbee3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.14
RUN apk add --no-cache g++ boost-dev
COPY . /usr/app
WORKDIR /usr/app
RUN g++ src/interpreter.tab.c -o fb-interpreter
ENTRYPOINT [ "./fb-interpreter" ]
CMD ["examples/input_1.txt"]
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@

FB-interpreter is logic-arithmetic interpreter with variable and string support, build with Flex and Bison.

## Running with Docker

```shell
docker run -it ahbenmed/fbinterpreter <examples/input_1.txt>

```

## Running manually

### Prerequisites

* C++ compiler should be installed [GNU Compiler](https://gcc.gnu.org/install/)
* C++ compiler should be installed [GNU Compiler](https://gcc.gnu.org/install/)

### Running
### Run

```shell
cd FB-interpreter/
Expand Down

0 comments on commit 09cbee3

Please sign in to comment.