-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 711 Bytes
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 711 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
27
28
29
30
31
32
FROM ubuntu:latest
# Set environment variables for user and home directory
ENV USER=container
ENV HOME=/home/container
# Set the working directory
WORKDIR /home/container
# Copy the entrypoint script to the container
COPY ./entrypoint.sh /entrypoint.sh
COPY ./functions /functions
# Update and install required packages
RUN apt update -y && \
apt upgrade -y && \
apt install -y \
curl \
zip \
unzip \
jq \
coreutils \
toilet \
software-properties-common && \
apt clean && \
adduser --disabled-password --home /home/container container
# Switch to non-root user
USER container
# Set the entrypoint
CMD ["/bin/bash", "/entrypoint.sh"]