-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (42 loc) · 1.25 KB
/
Dockerfile
File metadata and controls
46 lines (42 loc) · 1.25 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu
ENV \
DISPLAY=unix:0.0
RUN set -xe &&\
export DEBIAN_FRONTEND=noninteractive &&\
apt-get update &&\
apt-get install --yes \
libx11-6 \
libx11-xcb1 \
libxcb-dri3-0 \
libxcomposite1 \
libxcursor1 \
libxext6 \
librust-gobject-sys-dev \
libxi6 \
libxtst6 \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
librust-gdk-pixbuf-sys-dev \
libgtk-3-0 \
libdrm2 \
libgbm1 \
libxss1 \
libasound2 \
gnupg \
curl &&\
curl --silent --output - https://typora.io/linux/public-key.asc | apt-key add - &&\
echo "deb https://typora.io/linux ./" | tee /etc/apt/sources.list.d/typora.list &&\
apt-get update &&\
apt-get install --yes typora &&\
# Setup enveroument
echo "NO_AT_BRIDGE=1" | tee -a /etc/environment &&\
useradd --no-log-init --user-group --home-dir /home creator && \
# Clean
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $buildDeps && \
apt-get clean && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
COPY entrypoint.sh /usr/local/bin/entrypoint
RUN chmod +x /usr/local/bin/entrypoint
WORKDIR /home
ENTRYPOINT ["entrypoint"]