Changes made for out Project

This commit is contained in:
sotos
2025-12-08 09:09:48 +01:00
parent 23be1e4059
commit 508f1a46b2
16 changed files with 95 additions and 262 deletions

22
snake/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM alpine:latest
RUN apk add --no-cache nginx bash curl php82 php82-fpm php82-mysqli \
php82-pdo php82-pdo_mysql php82-gd php82-opcache php82-session \
php82-ctype php82-dom php82-mbstring php82-zlib php82-curl tar
# Verzeichnisse anlegen und Rechte setzen
RUN mkdir -p /run/nginx /var/log/nginx /var/www/html /data \
&& chmod o+rx /data \
&& chmod -R o+r /data \
&& rm -rf /var/www/html \
&& ln -s /data /var/www/html \
&& chown -R 101:101 /data
# nginx config und Startskript kopieren
COPY nginx.conf /etc/nginx/nginx.conf
COPY start.sh /start.sh
RUN chmod +x /start.sh
EXPOSE 80
CMD ["/start.sh"]