-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 1.53 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
FROM alpine:3.18
################################################################################
# Install Dependencies
################################################################################
RUN apk add --no-cache bash curl g++
################################################################################
# Install PHP 8.2
################################################################################
RUN apk add --no-cache \
$( \
apk search -qe --no-cache 'php82*' \
| sed -e 's/[^ ]*dev[^ ]*//ig' \
| sed -e 's/[^ ]*xdebug[^ ]*//ig' \
| sed -e 's/[^ ]*couchbase[^ ]*//ig' \
| sed -e 's/[^ ]*pecl-psr[^ ]*//ig' \
| cat \
)
################################################################################
# Setup the Application
################################################################################
WORKDIR /var/www/html
EXPOSE 8000
################################################################################
# Start Web Server
################################################################################
ENTRYPOINT [ "php82", "artisan", "octane:start", "--server=swoole", "--host=0.0.0.0" ]