Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DockerfileLightCaddy & Fixed the Caddyfile #90

Merged
merged 6 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
localhost
root * /usr/share/caddy
route {
try_files {path} {path}/ /index.html
file_server
}
localhost {
handle {
root * /usr/share/caddy
try_files {path} {path}/ /index.html
file_server
}
}
3 changes: 3 additions & 0 deletions DockerfileLightCaddy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM caddy:alpine
COPY ./dist /usr/share/caddy
COPY Caddyfile /etc/caddy/Caddyfile
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Spins up a development server where you can make all your calls, and run it like
This will generate a minified and buildable version of the website in the `dist` folder to use on a web server. In order to use history, you must have a proxy enabled, and reverse proxy enabled for the API calls. There is some setup involved, depending on your flavour of web servers, but some setup configs can be found [here](https://github.com/PhlexPlexico/G5V/wiki).

### Docker Build Instructions:

There are 3 dockerfiles included, `DockerfileLight`, `DockerfileFull` and `DockerfileLightCaddy`.

#### DockerfileLight:
Expand Down