forked from melsman/mlkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Dockerfile for creating an ubuntu machine with MLKit and SMLtoJs
# installed.
#
# Build it with:
#
# docker build -t mlkit .
#
# Run the image with:
#
# docker run -it mlkit
#
FROM --platform=linux/amd64 ubuntu:20.04
RUN apt-get update && apt-get install -y \
gcc autoconf make
ADD https://github.com/melsman/mlkit/releases/latest/download/mlkit-bin-dist-linux.tgz .
RUN cd / && tar xzf mlkit-bin-dist-linux.tgz
RUN cd /mlkit-bin-dist-linux && make install
RUN mkdir /usr/local/etc/mlkit && \
mkdir /usr/local/etc/smltojs && \
echo "SML_LIB /usr/local/lib/mlkit" > /usr/local/etc/mlkit/mlb-path-map && \
echo "SML_LIB /usr/local/lib/smltojs" > /usr/local/etc/smltojs/mlb-path-map
RUN rm -rf /mlkit-bin-dist-linux.tgz /mlkit-bin-dist-linux