From c856c7e66e3ad29ea0491f1f4951b31deb8279ea Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 20 Oct 2019 16:53:28 +0200 Subject: functional --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0e783f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM golang + +# Install libraries +RUN go get \ + github.com/gorilla/mux \ + golang.org/x/net + + +# 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/landingpage src/*.go + +ENTRYPOINT [ "/workdir/landingpage" ] -- cgit 1.4.1