Transition from busybox httpd to nginx
This commit is contained in:
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM docker.io/nginx:1-alpine
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY ./www /www
|
||||
@@ -1,8 +1,4 @@
|
||||
{
|
||||
"schemaVersion": 2,
|
||||
"dockerfileLines": [
|
||||
"FROM lipanski/docker-static-website",
|
||||
"COPY httpd.conf httpd.conf",
|
||||
"COPY ./www /www"
|
||||
]
|
||||
"deckerfilePath": "./Dockerfile"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
H:/www
|
||||
4
local-test.sh
Normal file
4
local-test.sh
Normal 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 .)
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM docker.io/lipanski/docker-static-website
|
||||
COPY httpd.conf httpd.conf
|
||||
COPY ./www /www
|
||||
@@ -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
8
nginx.conf
Normal file
@@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
root /www;
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user