FROM crystallang/crystal:0.24.1

WORKDIR /crystal
COPY views views
COPY run-radix.sh run-radix.sh
COPY server_radix.cr server_radix.cr
COPY shard.lock shard.lock
COPY shard.yml shard.yml

ENV GC_MARKERS 1

RUN shards install
RUN crystal build --release --no-debug server_radix.cr -o server_radix.out

CMD bash run-radix.sh
