This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM crystallang/crystal | |
| RUN mkdir /tmp/crystal-cache | |
| ENV CRYSTAL_CACHE_DIR /tmp/crystal-cache | |
| WORKDIR /app | |
| COPY func.cr . | |
| RUN crystal build func.cr | |
| RUN mkdir -p /tmp/iofs | |
| CMD ./func |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "socket" | |
| require "file_utils" | |
| require "http/server" | |
| require "json" | |
| class FnHelper | |
| getter(url : String) { ENV.fetch "FN_LISTENER", "unix:/tmp/iofs/lsnr.sock" } | |
| getter(socket_path : String) { url[5..] } | |
| getter(private_socket_path : String) { socket_path + ".private" } | |
| getter? linked : Bool = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type: oci | |
| package: dogsbody-image.tgz | |
| paths: | |
| - /app/ | |
| - /usr/local/bin/ | |
| - /usr/local/lib/ | |
| - /usr/local/include/ | |
| - /usr/local/bundle/ | |
| cmd: | |
| - ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hello World! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package: coreutils | |
| paths: | |
| - /usr/bin/cat | |
| cmd: | |
| - /usr/bin/cat | |
| - /read/data |
NewerOlder