generated from stephendolan/lucky_jumpstart
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (32 loc) · 915 Bytes
/
Dockerfile
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
FROM crystallang/crystal:0.35.0
LABEL maintainer="[email protected]"
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
libc6-dev \
libevent-dev \
libpcre2-dev \
libpng-dev \
libssl-dev \
libyaml-dev \
libnss3-dev \
zlib1g-dev \
postgresql-client \
chromium-chromedriver \
curl \
wget
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
yarn \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/luckyframework/lucky_cli \
&& cd lucky_cli \
&& git checkout v0.22.0 \
&& shards install \
&& crystal build src/lucky.cr \
&& mv lucky /usr/local/bin