-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile.arm
43 lines (32 loc) · 915 Bytes
/
Dockerfile.arm
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
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM arm32v7/rust:1.33.0-slim
RUN mkdir -p /usr/share/man/man1
RUN apt-get update -y && apt-get install -y \
pkg-config \
libsqlite3-dev \
python3 \
g++ \
nodejs \
php-cli \
mono-devel \
mono-vbnc \
lua5.3 \
lua-socket \
lua-sec \
openjdk-8-jdk \
nasm \
ruby-full
RUN cargo install diesel_cli --no-default-features --features "sqlite"
RUN apt-get install -y wget unzip && \
cd /usr/lib && \
wget https://github.com/JetBrains/kotlin/releases/download/v1.3.20-eap-25/kotlin-compiler-1.3.20-eap-25.zip && \
unzip kotlin-compiler-*.zip && \
rm kotlin-compiler-*.zip && \
rm -f kotlinc/bin/*.bat && \
apt-get remove -y wget unzip
ENV PATH $PATH:/usr/lib/kotlinc/bin
COPY ./ /home
WORKDIR /home
RUN useradd -d /home --uid 1000 -s /bin/bash -p dev dev
ENV DOCKER_ENV=true
RUN cargo build --release
CMD ["cargo", "run", "--release"]