Skip to content

Commit 533092e

Browse files
committed
ci: add dev Dockerfile
1 parent 4483974 commit 533092e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# syntax=docker/dockerfile:1
2+
FROM golang:1.23
3+
4+
RUN apt-get update && apt-get install -y \
5+
build-essential \
6+
jq \
7+
&& rm -rf /var/lib/apt/lists/*
8+
9+
RUN mkdir fswatch/ && \
10+
curl -sL "$(curl -sL \
11+
-H 'Accept: application/vnd.github+json' \
12+
-H 'X-GitHub-Api-Version: 2022-11-28' \
13+
https://api.github.com/repos/emcrisostomo/fswatch/releases/latest | jq -r '.assets[0].browser_download_url')" | tar -xz -C fswatch --strip-components=1 && \
14+
cd fswatch/ && \
15+
./configure && \
16+
make -j"$(getconf _NPROCESSORS_ONLN)" && \
17+
make install && \
18+
cd .. && \
19+
rm -Rf fswatch/
20+
21+
ENV LD_LIBRARY_PATH=/usr/local/lib

0 commit comments

Comments
 (0)