-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
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/ |