Compare commits

...

2 Commits

Author SHA1 Message Date
MegaSa1nt
1d7d6ecef7 Merge pull request #280 from MegaSa1nt/dockerfile
Create a Dockerfile for the repo
2024-12-13 22:09:34 +03:00
M336
d692f682c5 Create a Dockerfile 2024-12-13 19:56:42 +01:00

24
Dockerfile Normal file
View File

@@ -0,0 +1,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"]