aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2022-11-25 21:32:56 -0700
committerMelody Horn <melody@boringcactus.com>2022-11-25 21:32:56 -0700
commit218ebc3f8002e0ed21419b3f31a3ae2a56d4ee64 (patch)
treefab9cda4e02efe96cfe65e120148a51bbfb14480 /Dockerfile
parente313512910c2f529ad89be7ab7055d4fd8fd5280 (diff)
downloadlinja-pona-svginator-218ebc3f8002e0ed21419b3f31a3ae2a56d4ee64.tar.gz
linja-pona-svginator-218ebc3f8002e0ed21419b3f31a3ae2a56d4ee64.zip
b
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..75f190d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM alpine:3.17.0
+
+RUN apk add inkscape
+RUN apk add cargo
+RUN apk add npm
+
+WORKDIR /root
+ADD Cargo.toml Cargo.toml
+ADD Cargo.lock Cargo.lock
+RUN mkdir src && touch src/main.rs
+RUN cargo fetch
+RUN npm -g install svgo
+ADD . .
+ADD linja-pona-4.9.otf /usr/share/fonts/
+RUN cargo build --release
+EXPOSE 8000
+CMD cargo run --release