Skip to content

Commit

Permalink
Merge branch 'dockerfile'.
Browse files Browse the repository at this point in the history
  • Loading branch information
noteed committed Jul 20, 2024
2 parents 998fc66 + 1da25c3 commit e283c4b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This Dockerfile uses the statically-linked Slab binary from the GitHub
# release page, mostly to make sure it works on an "arbitrary" Linux
# distribution.
FROM debian:12.6-slim

RUN apt-get update \
&& apt-get install -y curl \
&& curl -sL https://github.com/hypered/slab/releases/download/v0.0.3.0-alpha/slab-v0.0.3.0-linux-x86-64-musl -o /bin/slab && chmod +x /bin/slab

RUN mkdir /tmp/src \
&& echo \
"p Some non-ascii characters: çõé." \
> /tmp/src/index.slab

RUN cd /tmp \
&& slab build src/

CMD cd /tmp/ \
&& slab build src/

0 comments on commit e283c4b

Please sign in to comment.