Add basic docker support for development

Assuming docker engine is installed, it is now possible to run the dev
server using 'docker-compose up --build' or run the production version using
'docker build -t bitburner . && docker run -it -p 8000:80 bitburner'.
This commit is contained in:
Martin Fournier
2021-05-08 15:02:26 -04:00
parent 2bd4892fa8
commit ac8565d820
5 changed files with 84 additions and 5 deletions

15
docker-compose.yml Normal file
View File

@@ -0,0 +1,15 @@
version: "3.4"
services:
web:
image: bitburner:dev
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- "8000:8000"
volumes:
- ./src:/app/src
- ./css:/app/css
- ./utils:/app/utils
- ./test:/app/test