-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (44 loc) · 889 Bytes
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
##
# Base
##
FROM nginx:1.27.0-alpine3.19-slim@sha256:a529900d9252ce5d04531a4a594f93736dbbe3ec155a692d10484be82aaa159a AS base
COPY /base /
RUN apk add --no-cache \
ca-certificates=~20240226 \
gnutls-utils=~3
ARG workdir=/var/www
WORKDIR "${workdir}"
HEALTHCHECK --interval=10s --start-period=90s CMD netstat -ltn | grep -c ":443"
ENV EXPIRATION_DAYS=30
ENV NGINX_DOCUMENT_ROOT=/var/www/web
##
# Drupal
##
FROM base AS drupal
COPY /drupal /
ENV NGINX_FASTCGI_PASS_HOST=php
ENV NGINX_FASTCGI_PASS_PORT=9000
ENV NGINX_CLIENT_MAX_BODY_SIZE=128M
##
# Proxy
##
FROM base AS proxy
COPY /proxy /
##
# Vite
##
FROM proxy AS vite
COPY /vite /
ENV NGINX_PROXY_PASS=http://app:5173
##
# NextJS
##
FROM proxy AS nextjs
COPY /nextjs /
ENV NGINX_PROXY_PASS=http://app:3000
##
# Storybook
##
FROM proxy AS storybook
COPY /storybook /
ENV NGINX_PROXY_PASS=http://app:6006