-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.22.04
More file actions
26 lines (21 loc) · 684 Bytes
/
Dockerfile.22.04
File metadata and controls
26 lines (21 loc) · 684 Bytes
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
FROM hackinglab/ubuntu-base-hl:22.04
LABEL maintainer="Ivan Buetler <ivan.buetler@hacking-lab.com>"
ENV DEBIAN_FRONTEND=noninteractive
# 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
ADD root /
# Install required packages
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nginx \
vim \
openssl \
passwd \
adduser \
&& 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
# Expose port
EXPOSE 80