diff options
author | Emile <hanemile@protonmail.com> | 2019-10-06 23:52:09 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-06 23:52:09 +0200 |
commit | 72e86f736dca3b2da6f200d91a459c8faab3e288 (patch) | |
tree | 04780e81f2a244cd12f61d2cb999800fb64111d2 /Dockerfile | |
parent | 4444639dcb256b2928abc5f1e925f2529797c1f1 (diff) |
basic setup
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
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" ] |