-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (24 loc) · 953 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
FROM ubuntu:20.04
ENV REPO="xenial"
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y ffmpeg xvfb git cmake lua5.1 lua5.1-dev luajit libssl-dev m4 luarocks xdotool pulseaudio \
firefox libnss3 libcurl3-gnutls sudo xfce4 xfce4-terminal xclip fonts-wqy-microhei inotify-tools vlc && \
apt-get remove -y xscreensaver
ENV UNAME cozycast
RUN export UNAME=$UNAME UID=1000 GID=1000 && \
mkdir -p "/home/${UNAME}" && \
echo "${UNAME}:x:${UID}:${GID}:${UNAME} User,,,:/home/${UNAME}:/bin/bash" >> /etc/passwd && \
echo "${UNAME}:x:${UID}:" >> /etc/group && \
mkdir -p /etc/sudoers.d
ENV TINI_VERSION="v0.19.0"
ADD https://github.com/krallin/tini/releases/download/v0.19.0/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
COPY cozycast-worker-1.0-1.rockspec .
COPY vendor /tmp/vendor
RUN cd / && luarocks make
COPY . .
#USER $UNAME
ENV HOME /home/cozycast
CMD ["/entrypoint.sh"]