diff options
author | Emile <hanemile@protonmail.com> | 2019-10-20 13:36:03 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-20 13:36:03 +0200 |
commit | 6f685cd048ec48d7cdcf8057adfdc76cfda6a57f (patch) | |
tree | c7c291c339dae69ac4e1d518a01bd27ba1f2a256 | |
parent | bfb4b508bddb96359d53c6f0e0b7139f2492f2be (diff) |
Docker
-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" ] |