-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
62 lines (50 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
62 lines (50 loc) · 1.31 KB
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
FROM ubuntu:26.04
LABEL MAINTAINER="brudermusscode <justin@heia.kim>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -q && \
apt install -y \
apt-transport-https \
lsb-release \
software-properties-common \
gnupg2 \
curl \
ca-certificates \
ubuntu-keyring \
libzip-dev \
libicu-dev \
libcurl4-openssl-dev \
git \
zip \
unzip \
nodejs
# nginx. Why ondrej, why we need this instead of your ppa :(
RUN mkdir -p /etc/apt/keyrings && \
curl -fsSL https://nginx.org/keys/nginx_signing.key \
| gpg --dearmor -o /etc/apt/keyrings/nginx.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nginx.gpg] \
http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" \
> /etc/apt/sources.list.d/nginx.list
# Install nginx & php
RUN apt update -q && \
apt install -y \
nginx \
php8.5 \
php8.5-cli \
php8.5-fpm \
php8.5-common \
php8.5-bz2 \
php8.5-curl \
php8.5-mbstring \
php8.5-intl \
php8.5-mysql \
php8.5-xml \
php8.5-gd \
php8.5-zip
RUN rm -f /var/log/nginx/access.log /var/log/nginx/error.log && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
WORKDIR /data
COPY . .
RUN chown www-data -R public storage
EXPOSE 80
ENTRYPOINT ["/data/docker/entrypoint.sh"]