Skip to content

Commit

Permalink
ci: add dev Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Aug 14, 2024
1 parent 4483974 commit 533092e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# syntax=docker/dockerfile:1
FROM golang:1.23

RUN apt-get update && apt-get install -y \
build-essential \
jq \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir fswatch/ && \
curl -sL "$(curl -sL \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
https://api.github.com/repos/emcrisostomo/fswatch/releases/latest | jq -r '.assets[0].browser_download_url')" | tar -xz -C fswatch --strip-components=1 && \
cd fswatch/ && \
./configure && \
make -j"$(getconf _NPROCESSORS_ONLN)" && \
make install && \
cd .. && \
rm -Rf fswatch/

ENV LD_LIBRARY_PATH=/usr/local/lib

0 comments on commit 533092e

Please sign in to comment.