-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
43 lines (31 loc) · 1.51 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
FROM jlesage/baseimage-gui:ubuntu-22.04-v4.5.3 AS builder
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests ca-certificates curl
RUN mkdir -p /grass
COPY startapp.sh /grass/startapp.sh
RUN chmod +x /grass/startapp.sh
COPY main-window-selection.jwmrc /grass/main-window-selection.jwmrc
ARG APP_URL=https://files.getgrass.io/file/grass-extension-upgrades/ubuntu-22.04/Grass_4.32.0_amd64.deb
RUN curl -sS -L ${APP_URL} -o /grass/grass.deb
FROM jlesage/baseimage-gui:ubuntu-22.04-v4.5.3
LABEL org.opencontainers.image.authors="[email protected]"
ENV KEEP_APP_RUNNING=1
# jlesage/baseimage-gui:ubuntu-22.04-v4.6 报错:Could not create surfaceless EGL display: EGL_NOT_INITIALIZED,待jlesage/baseimage-gui修复
# jlesage/baseimage-gui:ubuntu-22.04-v4.5 不支持 web auth
ENV SECURE_CONNECTION=1
ENV WEB_AUTHENTICATION=1
ENV WEB_AUTHENTICATION_USERNAME=grass
ENV WEB_AUTHENTICATION_PASSWORD=grass
RUN set-cont-env APP_NAME "Grass" && \
set-cont-env APP_VERSION "4.30.0"
RUN apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests ca-certificates libayatana-appindicator3-1 libwebkit2gtk-4.1-0 libegl-dev && \
apt-get autoremove -y && \
apt-get -y --purge autoremove && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /grass/ /grass/
RUN mkdir -p /etc/jwm && \
mv /grass/main-window-selection.jwmrc /etc/jwm/main-window-selection.jwmrc && \
mv /grass/startapp.sh /startapp.sh && \
dpkg -i /grass/grass.deb && \
rm -rf /grass