Skip to content

Commit 7aa3f68

Browse files
committed
Add docker files for dev environment
1 parent c2bc354 commit 7aa3f68

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ composer.lock
2626
*.orig
2727
*.bak
2828
core
29+
.idea

Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM ubuntu:22.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
ENV PHP_VERSION="8.3"
6+
ENV LANG en_US.UTF-8
7+
ENV LC_ALL en_US.UTF-8
8+
9+
RUN apt update -y && apt -y install git curl locales doxygen
10+
11+
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
12+
locale-gen en_US.UTF-8 && \
13+
update-locale LANG=en_US.UTF-8 \
14+
15+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
16+
17+
RUN apt install -y software-properties-common && add-apt-repository ppa:ondrej/php && apt update -y
18+
19+
RUN apt install -y \
20+
php${PHP_VERSION} \
21+
php${PHP_VERSION}-dev \
22+
php${PHP_VERSION}-xdebug \
23+
php${PHP_VERSION}-iconv \
24+
php${PHP_VERSION}-bcmath \
25+
php${PHP_VERSION}-tidy
26+
27+
RUN echo "xdebug.mode=debug,coverage" >> /etc/php/${PHP_VERSION}/cli/php.ini
28+
29+
WORKDIR /opt/htmlpurifier

docker-compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
htmlpurifier:
3+
build:
4+
context: "."
5+
dockerfile: Dockerfile
6+
container_name: 'htmlpurifier'
7+
tty: true
8+
volumes:
9+
- .:/opt/htmlpurifier

0 commit comments

Comments
 (0)