-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (27 loc) · 925 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -------------------------------------------------------
#
# docker-altitude
#
# Builds a basic docker image that can run an Altitude server (http://altitudegame.com/).
#
# Authors: Gjermund Jensvoll
# Code based on docker-minecraft by Isaac Bythewood (https://github.com/overshard/docker-minecraft)
# -------------------------------------------------------
# Base system is the LTS version of Ubuntu.
FROM ubuntu:14.04
# Make sure we don't get notifications we can't answer during building.
ENV DEBIAN_FRONTEND noninteractive
# Download and install everything from the repos.
RUN apt-get update; apt-get -y upgrade
RUN apt-get -y install openjdk-6-jre lib32gcc1 expect curl
# Load scripts.
ADD ./scripts/start /start
# Fix permissions
RUN chmod +x /start
# Expose ports
EXPOSE 27275/udp
EXPOSE 27276/udp
# /data contains static files and database
VOLUME ["/data"]
# /start runs it.
CMD ["/start"]