forked from Cvolton/GMDprivateServer
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 656 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (18 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM php:8.1.31-apache
# Dockerfile's Metadata
LABEL name="GMDprivateServer" \
description="A Geometry Dash Server Emulator"
# Install necessary dependencies
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates && \
docker-php-ext-install pdo pdo_mysql && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /var/www/html
# Clone the repository
ARG BRANCH=master
RUN git clone --branch ${BRANCH} https://github.com/MegaSa1nt/GMDprivateServer.git . && \
chown -R www-data:www-data /var/www/html
# Export Apache's port
EXPOSE 80
# Start Apache
CMD ["apache2-foreground"]