Skip to content

Instantly share code, notes, and snippets.

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 bobmoff/49f5ecee8a63ffd790bff9d9b0527922 to your computer and use it in GitHub Desktop.
Save bobmoff/49f5ecee8a63ffd790bff9d9b0527922 to your computer and use it in GitHub Desktop.
Unity 3D Linux Standalone Build running in Docker (Development and Production)
This file exists only to make up the name of the gist
#!/bin/bash
cd "/Users/bobmoff/Projects/Lazer League/server"
docker build -t bobmoff/lazerleague-server -f Dockerfile-dev .
docker-compose up
#!/bin/bash
docker build -t bobmoff/lazerleague-server -f Dockerfile-prod .
docker push bobmoff/lazerleague-server
version: '2'
services:
server:
image: bobmoff/lazerleague-server
ports:
- "7777:7777"
- "7777:7777/udp"
volumes:
- ./shared:/shared
server:
autoredeploy: true
image: 'bobmoff/lazerleague-server:latest'
ports:
- '7777:7777'
- '7777:7777/udp'
restart: always
FROM ubuntu
MAINTAINER Fille Åström fille@imgnry.com
EXPOSE 7777
VOLUME /shared
WORKDIR /shared
CMD sleep 1 & ./lazerleague-server.x86_64 -logfile output.log & touch output.log & tail -f output.log
FROM ubuntu
MAINTAINER Fille Åström fille@imgnry.com
EXPOSE 7777
COPY ./shared /shared
WORKDIR /shared
CMD sleep 1 & ./lazerleague-server.x86_64 -logfile output.log & touch output.log & tail -f output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment