From 365113508d397c375270090ef6aeca81b53258df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Krau=C3=9Fer?= Date: Thu, 7 May 2026 17:52:42 +0200 Subject: [PATCH] added dockerfile --- Dockerfile | 9 +++++++++ compose.yaml | 8 ++++++++ nginx.conf | 6 ++++++ 3 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yaml create mode 100644 nginx.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6cc9a44 --- /dev/null +++ b/Dockerfile @@ -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;"] \ No newline at end of file diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..77748ae --- /dev/null +++ b/compose.yaml @@ -0,0 +1,8 @@ +services: + portfolio: + build: + context: . + image: portfolio_website + expose: + - "8081" + restart: unless-stopped \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..026e9db --- /dev/null +++ b/nginx.conf @@ -0,0 +1,6 @@ +server { + listen 8081; + server_name localhost; + + root /usr/share/nginx/html; +} \ No newline at end of file