Transition from busybox httpd to nginx #4

Merged
jason merged 1 commits from nginx into master 2025-01-09 15:38:31 +00:00
7 changed files with 16 additions and 15 deletions

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM docker.io/nginx:1-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY ./www /www

View File

@@ -1,8 +1,4 @@
{ {
"schemaVersion": 2, "schemaVersion": 2,
"dockerfileLines": [ "deckerfilePath": "./Dockerfile"
"FROM lipanski/docker-static-website",
"COPY httpd.conf httpd.conf",
"COPY ./www /www"
]
} }

View File

@@ -1 +0,0 @@
H:/www

4
local-test.sh Normal file
View File

@@ -0,0 +1,4 @@
# Script used to spin up a local webserver for development & testing
#!/bin/bash
podman run -it --rm -p 3000:80 $(podman build -q .)

View File

@@ -1,3 +0,0 @@
FROM docker.io/lipanski/docker-static-website
COPY httpd.conf httpd.conf
COPY ./www /www

View File

@@ -1,6 +0,0 @@
# Script used to spin up a local webserver for development
#!/bin/bash
CURR_DIR="$(pwd)"
cd ${PWD}/..
podman run -it --rm --init -p 3000:3000 $(podman build -q -f ./local-test/Dockerfile .)

8
nginx.conf Normal file
View File

@@ -0,0 +1,8 @@
server {
listen 80;
root /www;
location / {
index index.html;
}
}