docker: init basic dev setup
This commit is contained in:
22
docker/Dockerfile
Normal file
22
docker/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user