-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
29 lines (24 loc) · 1.15 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
FROM ubuntu:latest
USER root
RUN apt-get update
RUN apt-get install --no-install-recommends sudo apt-utils -y
RUN apt-get install --no-install-recommends python3 python-is-python3 software-properties-common -y
RUN apt-get install --no-install-recommends git curl xvfb rsync -y
RUN apt-get install --no-install-recommends libglib2.0-0 libgtk-3-0 -y
RUN apt-get install --no-install-recommends psmisc -y
RUN apt-get install --no-install-recommends locales locales-all -y
ARG arch
RUN if [ "$arch" = "i386" ]; then dpkg --add-architecture i386; fi
RUN if [ "$arch" = "i386" ]; then apt-get update; fi
RUN if [ "$arch" = "i386" ]; then apt-get install --no-install-recommends libc6:i386 libncurses5:i386 libstdc++6:i386 -y; fi
RUN if [ "$arch" = "i386" ]; then apt-get install --no-install-recommends libglib2.0-0:i386 libgtk-3-0:i386 libx11-6:i386 -y; fi
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
ENV DISPLAY=:1
COPY xvfb /etc/init.d/xvfb
COPY docker.sh /docker.sh
COPY entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r$//' /etc/init.d/xvfb /docker.sh /entrypoint.sh
RUN chmod +x /etc/init.d/xvfb /docker.sh /entrypoint.sh
WORKDIR /project
ENTRYPOINT ["/entrypoint.sh"]