add : docker compose
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
# Use official nginx image as base
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy static site files to nginx html directory
|
||||
COPY index.html /usr/share/nginx/html/index.html
|
||||
COPY styles.css /usr/share/nginx/html/styles.css
|
||||
COPY script.js /usr/share/nginx/html/script.js
|
||||
#COPY cv_goutenoir.pdf /usr/share/nginx/html/cv_goutenoir.pdf
|
||||
|
||||
# Expose port 80
|
||||
EXPOSE 80
|
||||
|
||||
# No CMD needed, nginx runs by default
|
||||
7
docker-compose.yml
Normal file
7
docker-compose.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
blackdrop_html:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:80"
|
||||
container_name: blackdrop_html
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user