This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
FROM php:7.2-apache
|
||||
FROM python:3.9-slim
|
||||
|
||||
COPY . /var/www/html
|
||||
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||
WORKDIR /app
|
||||
|
||||
EXPOSE 80
|
||||
RUN chown -R www-data:www-data /var/www/html && a2enmod rewrite
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY main.py .
|
||||
COPY version .
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
|
||||
Reference in New Issue
Block a user