Skip to content

Commit

Permalink
Updating Dockerfile
Browse files Browse the repository at this point in the history
Installing the compiled binary to a global dir and then running it from /app
  • Loading branch information
robotastic committed May 17, 2021
1 parent 06226ea commit 5b7d90a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ WORKDIR /src

COPY . .

RUN cmake . && make -j`nproc` && cp recorder /recorder
RUN cmake . && make -j`nproc` && cp -i recorder /usr/local/bin

#USER nobody

WORKDIR /app

# GNURadio requires a place to store some files, can only be set via $HOME env var.
ENV HOME=/tmp

CMD ["/recorder", "--config=/app/config.json"]
CMD ["/usr/local/bin/recorder", "--config=/app/config.json"]

0 comments on commit 5b7d90a

Please sign in to comment.