Dockerized
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user