more refinements
This commit is contained in:
28
.devcontainer/Dockerfile
Normal file
28
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM golang:1.25.4-bookworm
|
||||
|
||||
# Install dependencies for telldus-core
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
libssl-dev \
|
||||
libavahi-client-dev \
|
||||
libglib2.0-dev \
|
||||
libftdi-dev \
|
||||
libconfuse-dev \
|
||||
nodejs \
|
||||
npm \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Build telldus-core
|
||||
COPY ./telldus-core /usr/src/telldus-core
|
||||
WORKDIR /usr/src/telldus-core
|
||||
RUN cmake . \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& ldconfig
|
||||
|
||||
# Set workdir for the project
|
||||
WORKDIR /workspaces/go-telldus-matter
|
||||
|
||||
ENV GO111MODULE=on
|
||||
ENV CGO_ENABLED=1
|
||||
Reference in New Issue
Block a user