Skip to content

Commit

Permalink
Update docker-compose.yml to properly build the image
Browse files Browse the repository at this point in the history
  • Loading branch information
fr1kin committed Jul 3, 2021
1 parent 177777e commit d288657
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 60 deletions.
48 changes: 0 additions & 48 deletions Dockerfile

This file was deleted.

21 changes: 9 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
version: '3.7'

version: '2.4'
services:
mcserver:
container_name: 'mcserver'
image: 'mcserver'
build:
context: .
dockerfile: Dockerfile
ports:
- "25565:25565"
niscore-build:
container_name: niscore-build
image: adoptopenjdk/openjdk16
working_dir: /opt/build
entrypoint: bash -c "chmod +x ./gradlew && ./gradlew clean build"
environment:
GRADLE_USER_HOME: /opt/build/.gradle/caches
volumes:
- ./mcserver/plugins:/opt/minecraft/plugins
- ./mcserver/worlds:/opt/minecraft/worlds
- .:/opt/build:Z

0 comments on commit d288657

Please sign in to comment.