File tree Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Expand file tree Collapse file tree 3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 22. *
33* .pdf
44test_images /
5- Dockerfile
65* .png
76* .jpg
87* .gif
Original file line number Diff line number Diff line change 1+ FROM alpine:3.22
2+
3+ RUN apk add curl
4+ RUN apk add alpine-sdk
5+
6+ RUN adduser -D user
7+ USER user
8+
9+ # installs Rust
10+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
11+ ENV PATH="/home/user/.cargo/bin:${PATH}"
12+ RUN rustup install 1.90 && rustup default 1.90
13+
14+ WORKDIR /home/user/app
15+ COPY --chown=user . .
16+ RUN cargo install --locked --path .
17+
18+ ENTRYPOINT ["piet_programming_language" ]
Original file line number Diff line number Diff line change @@ -20,6 +20,16 @@ $ cd piet_programming_language/
2020$ cargo run -- --help
2121```
2222
23+ Or if you prefer Docker:
24+
25+ ``` bash
26+ $ git clone ' https://github.com/your-diary/piet_programming_language'
27+ $ cd piet_programming_language/
28+ $ docker build -t piet_programming_language .
29+ $ docker run --rm piet_programming_language --help
30+ $ docker run --rm -it piet_programming_language --base64 " $( base64 ./path/to/image.png) "
31+ ```
32+
2333### 2.2 Installation
2434
2535MSRV(Minimum Supported Rust Version): [ Rust 1.87.0] ( https://www.rust-lang.org/tools/install )
You can’t perform that action at this time.
0 commit comments