Skip to content

Instantly share code, notes, and snippets.

@hb9fxq

hb9fxq/cmds Secret

Last active January 10, 2021 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hb9fxq/312001b0f220f6241a6e63361c3d7914 to your computer and use it in GitHub Desktop.
Save hb9fxq/312001b0f220f6241a6e63361c3d7914 to your computer and use it in GitHub Desktop.
webone dockerfile
#build dockerfile:
docker build -t webone:v0.10.3 .
#run with default config:
# NOTE: especially -i is required, to provide STDIN to allow Console.ReadKey in Program.cs to work
docker run --restart unless-stopped --network=host -d -i webone:v0.10.3
#or run with local config file:
docker run --restart unless-stopped --network=host -d -i -v /mylocalpath/to/webone.conf:/etc/WebOne/webone.conf webone:v0.10.3
#logs -> find container id with 'docker ps'
docker logs --follow 83c4ecedc65a
# some stats
docker stats $(docker ps --format={{.Names}}) --no-stream
FROM debian:buster-slim
RUN apt-get update && apt-get install -y \
&& apt-get install -y wget
RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN wget https://github.com/atauenis/webone/releases/download/v0.10.3/WebOne.0.10.3.linux-x64.deb -O webone.deb
RUN apt-get install ./packages-microsoft-prod.deb && apt-get update && apt-get install ./webone.deb -y && rm -rf /var/lib/apt/lists/*
EXPOSE 7777/tcp
RUN sed -i 's/^LogFile=/;LogFile=/g' /etc/WebOne/webone.conf
ENTRYPOINT WebOne 7777 --log=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment