Skip to content
Closed
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM python:3.12.7

RUN mkdir /code
WORKDIR /code
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,26 @@ Congratulations! You're now ready to create compiled BASIC programs for
your machine. Check and compile the examples included in the examples/ folder
or go to the [documentation page](https://zxbasic.readthedocs.io/en/latest/) for further info.


RUNNING WITH DOCKER
-------------------

Build the image:

~~~
$ docker compose build
~~~

You can compile any of the provided examples, e.g.:

~~~
$ docker compose run --rm zxbasic examples/led.bas
~~~

If everything went well, a file named `led.tap` should be created.
Open it with your favourite emulator (i.e. fuse) and see the result.


ACKNOWLEDGEMENTS
---------------

Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
zxbasic:
build: .
entrypoint: ["./zxbc.py", "-taB"]
volumes:
- .:/code
Loading