-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
46 lines (43 loc) 路 1.06 KB
/
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
39
40
41
42
43
44
45
46
FROM flat/ubuntu:latest
LABEL maintainer "Vincent Giersch <vincent+docker@tutteo.com>"
# Install Firefox
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
net-tools \
wget \
bzip2 \
ca-certificates \
tar \
libgtk-3-0 \
libdbus-1-3 \
libdbus-glib-1-2 \
libxtst6 \
libatk1.0-0 \
libcairo2 \
libfreetype6 \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libpango-1.0-0 \
libx11-6 \
libx11-xcb1 \
libxcb-shm0 \
libxext6 \
libxfixes3 \
libxrender1 \
libxt6 \
libxcb1 \
libxcb-shm0 \
libasound2-dev \
&& rm -rf /var/lib/apt/lists/*
RUN wget -q -O - "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" | tar -xj -C /usr/lib \
&& ln -s /usr/lib/firefox/firefox /usr/bin/firefox
# Running user
RUN useradd -d /home/user -m user
RUN mkdir -p /home/user/.mozilla/firefox /home/user/profile
COPY profiles.ini /home/user/.mozilla/firefox/
COPY installs.ini /home/user/.mozilla/firefox/
COPY user.js /home/user/profile/
RUN chown -R user:user /home/user
USER user
ENV HOME /home/user
WORKDIR /home/user