Create Dockerfile

This commit is contained in:
phermeys
2023-12-23 16:48:34 -08:00
committed by GitHub
parent 2d3ef50f3b
commit 5a5f7d076a

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
# Use an official Debian image
FROM debian:bullseye-slim
# Install necessary packages
RUN apt-get update && \
apt-get install -y apache2 && \
rm -rf /var/lib/apt/lists/*
# Create a directory to mount the SMB share
RUN mkdir /mnt/smb
# Copy your Apache configuration files, HTML, PHP, or other site content
COPY apache-config.conf /etc/apache2/sites-available/000-default.conf
#COPY index.html /var/www/html/
# Expose Apache port
EXPOSE 80
# Entry point script to mount the SMB share and start Apache
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]