mirror of
https://gitlab.vegova.si/rkv/prosojnice.git
synced 2025-05-15 16:20:31 +00:00
24 lines
510 B
Docker
24 lines
510 B
Docker
FROM node:20 AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
RUN yarn install --frozen-lockfile
|
|
|
|
# Install playwright dependencies
|
|
RUN yarn playwright install-deps
|
|
|
|
COPY . .
|
|
|
|
RUN yarn build
|
|
|
|
FROM httpd:2.4-alpine
|
|
|
|
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf && \
|
|
sed -i 's#AllowOverride [Nn]one#AllowOverride All#' /usr/local/apache2/conf/httpd.conf
|
|
|
|
COPY --from=build /app/dist/ /usr/local/apache2/htdocs/
|
|
|
|
COPY .htaccess /usr/local/apache2/htdocs/.htaccess
|