added dockerfile

This commit is contained in:
2026-05-07 17:52:42 +02:00
parent 087ee81f31
commit 365113508d
3 changed files with 23 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
FROM nginx:alpine
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
COPY . /usr/share/nginx/html
EXPOSE 8081
CMD ["nginx", "-g", "daemon off;"]
+8
View File
@@ -0,0 +1,8 @@
services:
portfolio:
build:
context: .
image: portfolio_website
expose:
- "8081"
restart: unless-stopped
+6
View File
@@ -0,0 +1,6 @@
server {
listen 8081;
server_name localhost;
root /usr/share/nginx/html;
}