-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (32 loc) · 1.13 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM node:18 AS webpack
WORKDIR /app
COPY package.json package-lock.json /app/
RUN npm install
COPY webpack.config.js /app/
COPY src/main/resources/assets /app/src/main/resources/assets
RUN npm run build
FROM composer AS composer
WORKDIR /app
COPY composer.* /app/
RUN composer install --no-dev --ignore-platform-reqs
FROM ghcr.io/programie/php-docker
ENV WEB_ROOT=/app/httpdocs
WORKDIR /app
RUN apt-get update && \
apt-get install -y curl ca-certificates gosu && \
install-php 8.2 dom intl pdo-mysql && \
a2enmod rewrite
COPY --from=composer /app/vendor /app/vendor
COPY --from=webpack /app/httpdocs/assets /app/httpdocs/assets
COPY --from=webpack /app/webpack.assets.json /app/webpack.assets.json
COPY docker-entrypoint.sh /entrypoint.sh
COPY bootstrap.php /app/bootstrap.php
COPY cli-config.php /app/cli-config.php
COPY bin /app/bin
COPY httpdocs /app/httpdocs
COPY src /app/src
RUN curl -o /tmp/coin_map.json https://raw.githubusercontent.com/ErikThiart/cryptocurrency-icons/master/coin_map.json && \
/app/bin/update-coinmap.php /tmp/coin_map.json && \
rm /tmp/coin_map.json
ENTRYPOINT ["/entrypoint.sh"]
CMD ["frontend"]