-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 872 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM crystallang/crystal:latest
WORKDIR /data
# install base dependencies
RUN apt-get update && \
apt-get install -y gnupg curl libreadline-dev wget ca-certificates && \
# Add PostgreSQL APT repository
mkdir -p /etc/apt/keyrings && \
wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor -o /etc/apt/keyrings/postgresql.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt noble-pgdg main" > /etc/apt/sources.list.d/postgres.list && \
apt-get update && \
apt-get install -y postgresql-16 && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Lucky cli
RUN git clone https://github.com/luckyframework/lucky_cli --branch main --depth 1 /usr/local/lucky_cli && \
cd /usr/local/lucky_cli && \
shards install && \
crystal build src/lucky.cr -o /usr/local/bin/lucky
COPY . /data