diff options
author | Emile <hanemile@protonmail.com> | 2019-10-20 16:53:28 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-20 16:53:28 +0200 |
commit | c856c7e66e3ad29ea0491f1f4951b31deb8279ea (patch) | |
tree | e32daefbeec30e667f261eca2c5a3409e783453d /Dockerfile | |
parent | 22e3029cbf5fa7fd64bfaea2e4dcd011c40a4236 (diff) |
functional
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
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" ] |