Skip to content

Commit

Permalink
Merge pull request #11 from bodybreaker/main
Browse files Browse the repository at this point in the history
Support Docker
  • Loading branch information
mcharytoniuk authored Aug 12, 2024
2 parents cc8712d + 01f8f23 commit 42698b3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ubuntu:22.04

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

RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g npm@latest

RUN curl -LO https://golang.org/dl/go1.20.6.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go1.20.6.linux-amd64.tar.gz \
&& rm go1.20.6.linux-amd64.tar.gz

ENV PATH=$PATH:/usr/local/go/bin

WORKDIR /app

RUN git clone https://github.com/distantmagic/paddler.git .

RUN make

RUN mv ./paddler-bin-linux-x64 /usr/local/bin/paddler

ENTRYPOINT ["paddler"]

0 comments on commit 42698b3

Please sign in to comment.