mirror of
https://gitlab.vegova.si/rkv/prosojnice.git
synced 2025-05-15 16:20:31 +00:00
Dockerize
This commit is contained in:
parent
86df8de5c7
commit
5fb8b48eea
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@ -0,0 +1,6 @@
|
||||
dist/
|
||||
node_modules/
|
||||
.gitignore
|
||||
.prettierignore
|
||||
Dockerfile
|
||||
README.md
|
11
.htaccess
Normal file
11
.htaccess
Normal file
@ -0,0 +1,11 @@
|
||||
RewriteEngine On
|
||||
# set the base URL prefix
|
||||
RewriteBase /
|
||||
# for requests for index.html, just respond with the file
|
||||
RewriteRule ^index.html$ - [L]
|
||||
# if requested path is not a valid filename, continue rewrite
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
# if requested path is not a valid directory, continue rewrite
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
# if you have continue to here, respond with index.html
|
||||
RewriteRule . /index.html [L]
|
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM mcr.microsoft.com/playwright:v1.38.1 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
FROM httpd:2.4-alpine
|
||||
|
||||
COPY --from=build /app/dist/ /usr/local/apache2/htdocs/
|
||||
|
||||
COPY .htaccess /usr/local/apache2/htdocs/.htaccess
|
Loading…
x
Reference in New Issue
Block a user