Skip to content

Commit

Permalink
Add Dockerfile (#27)
Browse files Browse the repository at this point in the history
* Convert print statements to Python 3 print function
* Add Dockerfile
  • Loading branch information
alsmith committed Nov 29, 2019
1 parent d22f182 commit 678bafb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3-alpine AS build
RUN apk add --no-cache gcc linux-headers musl-dev
RUN pip wheel netifaces

FROM python:3-alpine

COPY --from=build /netifaces*.whl /tmp
RUN pip install /tmp/netifaces*.whl
COPY multicast-relay.py /

ENTRYPOINT [ "python", "multicast-relay.py", "--foreground" ]

0 comments on commit 678bafb

Please sign in to comment.