-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 980 Bytes
/
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
34
35
36
37
38
FROM jrottenberg/ffmpeg:4.0-ubuntu
# MAINTAINER Amir Haghighati <[email protected]>
# https://github.com/anewage/
WORKDIR /home/lime
# Install packages
RUN apt update -y && \
apt upgrade -y && \
apt install -y firefox xvfb sudo iproute wondershaper vnstat iputils-ping
# Cleanup
RUN apt autoremove -y && apt clean -y
# Replace 1000 with your user / group id
RUN export uid=1000 gid=1000 && \
mkdir -p /home/lime && \
echo "lime:x:${uid}:${gid}:Lime,,,:/home/lime:/bin/bash" >> /etc/passwd && \
echo "lime:x:${uid}:" >> /etc/group && \
echo "lime ALL=(ALL) NOPASSWD: ALL\n" > /etc/sudoers.d/lime && \
chmod 0440 /etc/sudoers.d/lime && \
chown ${uid}:${gid} -R /home/lime
# Copy the video and initial script file
COPY config /home/lime/config
COPY bin /bin
#COPY config/.mozilla /home/lime/.mozilla
# Make the scripts runnable
RUN chmod +x /bin/*
# Place the user
USER lime
ENV HOME /home/lime
# ENTRYPOINT
ENTRYPOINT ["entrypoint"]