Skip to content

Instantly share code, notes, and snippets.

@LewisGet
Last active July 10, 2022 12:07
Show Gist options
  • Save LewisGet/de1b9b17fe354b734dcfce5951df6ec7 to your computer and use it in GitHub Desktop.
Save LewisGet/de1b9b17fe354b734dcfce5951df6ec7 to your computer and use it in GitHub Desktop.
version: "3.9"
services:
mc:
build: .
volumes:
- .:/server
ports:
- "22:2200"
FROM openjdk:8
MAINTAINER Lewis
WORKDIR /server
RUN apt update
RUN apt install -y zip unzip htop apache2 openssh-server
RUN /etc/init.d/apache2 stop
COPY mc-server.zip /server/mc-server.zip
RUN unzip mc-server.zip
RUN service ssh start
EXPOSE 22
EXPOSE 58888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment