Skip to content

Commit

Permalink
Add Docker build file
Browse files Browse the repository at this point in the history
  • Loading branch information
joekottke committed Dec 28, 2018
1 parent ba53428 commit 6589bcc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist
.cache
.pants*
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM debian:9.5-slim
RUN apt-get update
RUN apt-get -y upgrade
RUN mkdir -p /usr/share/man/man1
RUN apt-get install -y python python-pip
RUN mkdir /app
COPY src/*.py /app/
COPY proto/*.proto /app/proto/
RUN touch /app/proto/__init__.py
COPY requirements.txt /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
RUN python -m grpc_tools.protoc \
-I./proto \
--python_out=./proto \
--grpc_python_out=./proto \
./proto/namer.proto

0 comments on commit 6589bcc

Please sign in to comment.