-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.22.04
More file actions
36 lines (29 loc) · 1.11 KB
/
Dockerfile.22.04
File metadata and controls
36 lines (29 loc) · 1.11 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
FROM hackinglab/ubuntu-base-hl:22.04
LABEL maintainer="Ivan Buetler <ivan.buetler@hacking-lab.com>"
ENV DEBIAN_FRONTEND=noninteractive
ENV S6_OVERLAY_VERSION=v3.2.1.0
# Prevent services from starting during install (important under QEMU)
RUN echo '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d && \
chmod +x /usr/sbin/policy-rc.d
# Add files first
ADD root /
# Install required packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nginx \
vim \
openssl \
passwd \
adduser \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* && \
chown -R www-data:www-data /var/lib/nginx || true && \
chown -R www-data:www-data /opt/www || true
# Install s6-overlay (x86_64 assumed — buildx handles platform)
RUN curl -sSL https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz \
| tar -Jxpf - -C / && \
curl -sSL https://github.com/just-containers/s6-overlay/releases/download/${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz \
| tar -Jxpf - -C /
EXPOSE 80
ENTRYPOINT ["/init"]
CMD []