Initial Commit

master
Bill Ross 2 years ago
commit 6f9dcd6f0c
  1. 1
      .gitignore
  2. 2
      BUILD
  3. 9
      Dockerfile
  4. 7
      img2a
  5. 14
      package.json
  6. BIN
      test.jpg

1
.gitignore vendored

@ -0,0 +1 @@
package-lock.json

@ -0,0 +1,2 @@
docker build . -t gwhc/img2a
npm -g install .

@ -0,0 +1,9 @@
FROM golang:1.19.1
RUN go install github.com/TheZoraiz/ascii-image-converter@v1.11.0
VOLUME ["/data"]
WORKDIR /data
ENTRYPOINT ["/go/bin/ascii-image-converter"]

@ -0,0 +1,7 @@
#!/bin/sh
# Build command
# docker build . -t gwhc/img2a
P=`realpath $PWD`
docker run --rm -it -v $P:/data gwhc/img2a $*

@ -0,0 +1,14 @@
{
"name": "ascii-image-converter",
"version": "1.0.0",
"author": "",
"description": "",
"main": "img2a",
"bin": {
"img2a": "./img2a"
},
"scripts": {
"start": "./img2a"
},
"license": "ISC"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Loading…
Cancel
Save