mirror of
https://github.com/maciejpedzich/racemash.git
synced 2024-11-27 16:15:47 +01:00
Create Apache config and Dockerfile
This commit is contained in:
parent
d7c966c37f
commit
4c56bb2b75
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
FROM node:lts-alpine AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN npm i
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM httpd:2.4-alpine AS runtime
|
||||||
|
COPY --from=build /app/httpd.conf /usr/local/apache2/conf/httpd.conf
|
||||||
|
COPY --from=build /app/dist /usr/local/apache2/htdocs/
|
||||||
|
EXPOSE 80
|
12
httpd.conf
Normal file
12
httpd.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<IfModule mod_negotiation.c>
|
||||||
|
Options -MultiViews
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /
|
||||||
|
RewriteRule ^index\.html$ - [L]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule . /index.html [L]
|
||||||
|
</IfModule>
|
12
netlify.toml
12
netlify.toml
@ -1,12 +0,0 @@
|
|||||||
# example netlify.toml
|
|
||||||
[build]
|
|
||||||
command = "vite build"
|
|
||||||
functions = "netlify/functions"
|
|
||||||
publish = "dist"
|
|
||||||
|
|
||||||
## Uncomment to use this redirect for Single Page Applications
|
|
||||||
## Not needed for static site generators.
|
|
||||||
[[redirects]]
|
|
||||||
from = "/*"
|
|
||||||
to = "/index.html"
|
|
||||||
status = 200
|
|
Loading…
Reference in New Issue
Block a user