From 72e86f736dca3b2da6f200d91a459c8faab3e288 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 6 Oct 2019 23:52:09 +0200 Subject: basic setup --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e52428 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM golang + +# Install libraries +RUN go get \ + github.com/gorilla/mux \ + +# 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/register src/*.go + +ENTRYPOINT [ "/workdir/register" ] -- cgit 1.4.1