-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 680 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use the latest Ubuntu LTS as a base image
FROM ubuntu:22.04
# Set non-interactive frontend for package installation
ENV DEBIAN_FRONTEND=noninteractive
# Update package lists and install common development tools and NGINX
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
wget \
nginx \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Copy the NGINX configuration file
COPY nginx.conf /etc/nginx/nginx.conf
# Copy the static HTML content
COPY html/ /var/www/html/
# Expose port 80 for the web server
EXPOSE 80
# Start NGINX when the container launches
CMD ["nginx", "-g", "daemon off;"]