first commit
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
# Use official nginx alpine image
|
||||
FROM nginx:alpine
|
||||
|
||||
# Create directory for nginx config
|
||||
RUN mkdir -p /etc/nginx/conf.d
|
||||
|
||||
# Copy static files
|
||||
COPY index.html styles.css /usr/share/nginx/html/
|
||||
|
||||
# Copy nginx configuration
|
||||
COPY nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# Run nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user