23 lines
598 B
Docker
23 lines
598 B
Docker
# Use the official Debian image as a base
|
|
FROM debian:latest
|
|
|
|
# Set environment variables
|
|
# ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Update the package list and install Apache2 and MariaDB
|
|
RUN apt-get update && \
|
|
apt-get install -y apache2 && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
# Copy your website files to the Apache document root (optional)
|
|
COPY ./install/apache2-sites/coloradio.conf /etc/conf/apache2/sites-enabled/
|
|
|
|
# Expose ports for Apache and MariaDB
|
|
EXPOSE 80
|
|
|
|
# Start both Apache and MariaDB
|
|
CMD service apache2 start && \
|
|
tail -f /var/log/apache2/access.log
|