-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile-php80
More file actions
30 lines (21 loc) · 784 Bytes
/
Dockerfile-php80
File metadata and controls
30 lines (21 loc) · 784 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
26
27
28
29
30
FROM dersonsena/php:8.0
LABEL maintainer=dersonsena@gmail.com \
vendor=Cabra.dev
# Nginx Env Variables
ENV NGINX_DOCUMENT_ROOT=/var/www/html/public
RUN apk update && apk add --no-cache --update nginx
RUN rm -rf /var/cache/apk/*
# Copying config file into image
RUN rm -f /etc/nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx/nginx.conf /etc/nginx/
COPY nginx/default.conf /etc/nginx/conf.d/
# Copying certificates into image
RUN mkdir -p /etc/nginx/certs
COPY nginx/certs/certificate.crt /etc/nginx/certs/
COPY nginx/certs/certificate.key /etc/nginx/certs/
EXPOSE 80 443
WORKDIR /var/www/html
RUN chown -R nginx:nginx /var/www/html
COPY nginx/entrypoint.sh /etc/entrypoint-nginx.sh
RUN chmod +x /etc/entrypoint-nginx.sh
ENTRYPOINT ["/etc/entrypoint-nginx.sh"]