Dockerized

This commit is contained in:
Martin Sukany
2025-11-10 18:05:37 +01:00
parent 604e159dd3
commit f476a1009c
3 changed files with 195 additions and 318 deletions

View File

@@ -23,10 +23,11 @@ COPY templates ./templates
# Ensure CGI scripts are executable
RUN find /var/www/htdocs/cgi-bin -type f -name "*.py" -exec chmod 0755 {} \;
# Writable tmp for the app
# Writable tmp + kompatibilita s /scripts/tmp (skrypt nic neupravujeme)
RUN mkdir -p /var/www/htdocs/tmp \
&& chown -R www-data:www-data /var/www/htdocs/tmp /var/www/htdocs/templates \
&& chmod 0775 /var/www/htdocs/tmp
/var/www/htdocs/scripts/tmp \
&& chown -R www-data:www-data /var/www/htdocs/tmp /var/www/htdocs/scripts \
&& chmod 0775 /var/www/htdocs/tmp /var/www/htdocs/scripts/tmp
# --- Python dependencies (add more as needed) ---
RUN pip install --no-cache-dir pandas openpyxl