Adds Dockerfile (#38622)

* Adds Dockerfile

* Remove unnecessary package

* I swear this worked before

* Keep getrev working
This commit is contained in:
Jordan Brown
2018-06-20 17:42:29 -07:00
committed by Tad Hardesty
parent 41dbcba0db
commit fb4ee3d9d5
2 changed files with 67 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
.dockerignore
.editorconfig
.travis.yml
GPLv3.txt
LICENSE
README.md
TGS3.json
.github
.gitignore
.gitattributes
.git/hooks
.git/info
.git/modules
.git/objects
.git/refs
.vs*
tools
cfg
data
SQL
tgui/node_modules
tgstation.dmb
tgstation.int
tgstation.rsc
tgstation.lk
tgstation.dyn.rsc
libmariadb.dll
rust_g.dll
Dockerfile
+38
View File
@@ -0,0 +1,38 @@
FROM i386/ubuntu:xenial as build
WORKDIR /rust_g
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libssl-dev \
ca-certificates \
rustc \
cargo \
pkg-config \
&& git init \
&& git remote add origin https://github.com/tgstation/rust-g
#TODO: find a way to read these from .travis.yml or a common source eventually
ENV RUST_G_VERSION=0.3.0
RUN git fetch --depth 1 origin $RUST_G_VERSION \
&& git checkout FETCH_HEAD \
&& cargo build --release
FROM tgstation/byond:512.1427
EXPOSE 1337
WORKDIR /tgstation
COPY . .
RUN mkdir data && mkdir -p /root/.byond/bin
VOLUME [ "/tgstation/config", "/tgstation/data" ]
RUN DreamMaker -max_errors 0 tgstation.dme
COPY --from=build /rust_g/target/release/librust_g.so /root/.byond/bin/rust_g
ENTRYPOINT [ "DreamDaemon", "tgstation.dmb", "-port", "1337", "-trusted", "-close", "-verbose" ]