diff options
author | hanemile <hanemile@protonmail.com> | 2018-12-24 22:53:42 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2018-12-24 22:53:42 +0100 |
commit | 306c2a9871a4f12519ef56f7ca9fa4a272381e32 (patch) | |
tree | 670deea0e0bf659e73dd396b36308cf4403f58f0 /Dockerfile | |
parent | 434bcfcd4b1a723106015edea66538bff84a6a3d (diff) |
cron commit
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9cfbfba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM golang:latest + +# Setup the work directory +WORKDIR /home + +# Copy the files to WORKDIR +COPY main.go /home/main.go + +# Install the used go packages +RUN ["go", "get", "git.darknebu.la/GalaxySimulator/structs"] +RUN ["go", "get", "github.com/gorilla/mux"] + +# Start the webserver +ENTRYPOINT ["go", "run", "/home/main.go"] |