Last active
July 10, 2022 12:07
-
-
Save LewisGet/de1b9b17fe354b734dcfce5951df6ec7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.9" | |
services: | |
mc: | |
build: . | |
volumes: | |
- .:/server | |
ports: | |
- "22:2200" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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