This file contains 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
# See https://wjwh.eu/posts/2019-07-21-static-crystal-images.html for the reasoning behind each line | |
# Build stage | |
FROM durosoft/crystal-alpine:0.28.0 as build | |
COPY shard.yml shard.yml | |
RUN shards install --production | |
COPY . ./ | |
RUN crystal build src/my_app.cr --release --static |
This file contains 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
# omg this is such a long comment, good thing I can spread it out over multiple lines like this so it will be clear for my colleagues what this code will do |
This file contains 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
{-# LANGUAGE OverloadedStrings #-} | |
module RedisParsing where | |
import Control.Exception | |
import qualified Data.ByteString as B | |
import Data.Attoparsec.ByteString as AB | |
import Data.Attoparsec.ByteString.Char8 | |
import Data.List | |
import Network.Socket hiding (recv) | |
import Network.Socket.ByteString (recv, sendAll) |
NewerOlder