We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0a6d20 commit 5f6dfc3Copy full SHA for 5f6dfc3
2 files changed
watcher-go/Dockerfile
@@ -0,0 +1,14 @@
1
+# syntax=docker/dockerfile:1
2
+FROM golang:latest
3
+
4
+COPY .. /opt/watcher
5
+WORKDIR /opt/watcher
6
7
+RUN apt-get update && \
8
+ apt-get -y install cmake && \
9
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && \
10
+ cmake --build build && \
11
+ cmake --install build && \
12
+ ldconfig
13
14
+WORKDIR /usr/src/app
watcher-go/compose.yaml
@@ -0,0 +1,10 @@
+# `docker compose exec dev bash` to connect to the container
+services:
+ dev:
+ build:
+ context: ..
+ dockerfile: watcher-go/Dockerfile
+ volumes:
+ - ./:/usr/src/app
+ command: [ "sleep", "infinity" ]
+ restart: no
0 commit comments