-
Notifications
You must be signed in to change notification settings - Fork 55
/
Dockerfile
42 lines (35 loc) · 973 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
# Basic docker based environment
# Necessary to trick dokku into building the documentation
# using dockerfile instead of herokuish
FROM ubuntu:22.04
ENV TZ="Etc/UTC"
RUN apt-get update && \
apt-get install -y tzdata && \
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
# Add basic tools
RUN apt-get update && \
apt-get install -y build-essential \
software-properties-common \
curl \
git \
libxml2 \
libffi-dev \
libssl-dev
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && \
apt-get update && \
apt-get install -y \
php8.1-cli \
php8.1-mbstring \
php8.1-xml \
php8.1-zip \
php8.1-intl \
php8.1-opcache \
php8.1-sqlite \
php8.1-curl \
composer
# This prevents permission errors with the mounted vendor directory.
RUN git config --global --add safe.directory /code/vendor/cakephp/cakephp
WORKDIR /code
VOLUME ["/code"]
CMD [ "/bin/bash" ]