Files
password_generator/Dockerfile

31 lines
804 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ---------- Dockerfile ----------
# Base image PHP + Apache
FROM php:apache
# Install Python, NGINX, Supervisor and pip
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
python3-flask \
python3-yaml \
nginx \
supervisor \
net-tools \
&& rm -rf /var/lib/apt/lists/*
# Copy your application code & config files
# Website Files
COPY www/ /var/www/html
# Python files
COPY api/ /usr/src/app/
# Config Files
COPY nginx.conf /etc/nginx/nginx.conf
COPY apache_ports.conf /etc/apache2/ports.conf
COPY apache_vhost.conf /etc/apache2/sites-available/000-default.conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Expose the ports you care about
EXPOSE 80
# Start Supervisor
CMD ["/usr/bin/supervisord", "-n"]