forked from MrAntares/roBrowserLegacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# syntax=docker/dockerfile:experimental
# DOCKER_BUILDKIT=1 docker build --ssh default -t registry.digitalocean.com/titanro-docr/robrowserlegacy . && docker image push registry.digitalocean.com/titanro-docr/robrowserlegacy
FROM node:20.10.0 AS node
WORKDIR /usr/app
COPY ./ ./
RUN npm install
RUN npm run build -- -O -T -H
FROM php:8-apache
RUN apt-get update -y && apt-get install -y libpng-dev
RUN docker-php-ext-install pdo pdo_mysql mysqli gd
RUN a2enmod rewrite
COPY --from=node /usr/app/dist/Web /var/www/html
COPY ./index.html /var/www/html/
COPY ./service-worker.js /var/www/html/
COPY src/Plugins /var/www/html/src/Plugins/
RUN chown -R www-data:www-data /var/www/html
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"