-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (23 loc) · 1.01 KB
/
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
FROM --platform=$BUILDPLATFORM docker.io/ubuntu:22.04
ARG TARGETOS TARGETARCH
LABEL maintainer="tier940"
# Init
ENV TZ=Asia/Tokyo
ENV DEBIAN_FRONTEND=noninteractive
ENV PHP_VERSION=lsphp82
# Install package
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev wget
# Install openlitespeed
RUN wget http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh && \
bash enable_lst_debian_repo.sh && \
rm /enable_lst_debian_repo.sh && \
apt-get install -y openlitespeed mysql-client $PHP_VERSION $PHP_VERSION-common $PHP_VERSION-mysql $PHP_VERSION-opcache $PHP_VERSION-curl $PHP_VERSION-imagick $PHP_VERSION-redis $PHP_VERSION-memcached $PHP_VERSION-intl && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
COPY lsws/htpasswd /usr/local/lsws/admin/conf/htpasswd
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Finalize
ENTRYPOINT [ "/entrypoint.sh" ]
WORKDIR /usr/local/lsws/