2024-01-03 03:09:05 +00:00
|
|
|
FROM crystallang/crystal:latest
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2024-01-07 19:08:08 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
libmagic-dev \
|
|
|
|
libsqlite3-dev
|
2024-01-03 03:09:05 +00:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN shards install
|
2024-01-03 16:10:37 +00:00
|
|
|
RUN shards build server --release
|
|
|
|
RUN shards build cli
|
2024-01-03 03:09:05 +00:00
|
|
|
|
2024-01-03 17:26:54 +00:00
|
|
|
RUN chmod +x ./docker/entrypoint.sh
|
|
|
|
|
2024-01-03 03:09:05 +00:00
|
|
|
ENTRYPOINT [ "docker/entrypoint.sh" ]
|