From 6f685cd048ec48d7cdcf8057adfdc76cfda6a57f Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 20 Oct 2019 13:36:03 +0200 Subject: Docker --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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" ] -- cgit 1.4.1