diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..45c1829 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM golang + +# Install libraries +RUN go get \ + github.com/gorilla/mux \ + github.com/lib/pq + +# Create workdir +RUN mkdir /workdir +WORKDIR /workdir + +# Copy our sources +COPY src /workdir/src +COPY hosted /workdir/hosted +# and build them +RUN go build -o /workdir/manager src/*.go + +ENTRYPOINT [ "/workdir/manager" ] |