This repository was archived by the owner on Aug 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 77** /* .sample. *
88tmp /
99** /.env
10- ** /* .md
10+ ** /* .md
11+ docker-compose.yml
Original file line number Diff line number Diff line change @@ -28,23 +28,21 @@ RUN apk add --no-cache libsecret dbus gnome-keyring libcap &&\
2828 dbus-uuidgen > /var/lib/dbus/machine-id &&\
2929 setcap cap_ipc_lock=+ep $(which gnome-keyring-daemon)
3030
31- RUN addgroup mgc &&\
32- adduser -D -G mgc -h /app mgc
31+ # TODO: Find work-around for running image as a non-root user.
32+ # Docker doesn't support adding capabilities to non-root users. See https://training.play-with-docker.com/security-capabilities/
3333
3434WORKDIR /app
3535
3636COPY --from=build-env /app/output ./dist
3737
3838RUN ln -s /app/dist/mgc /usr/bin/mgc
3939
40- USER mgc
40+ COPY ./docker/* ./dist/
4141
42- COPY --chown=mgc:mgc ./docker/* ./dist/
43-
44- RUN mkdir -p /app/.mgc /app/.local/share/.IdentityService /app/.local/share/keyrings &&\
42+ RUN mkdir -p /root/.mgc /root/.local/share/.IdentityService /root/.local/share/keyrings &&\
4543 chmod +x /app/dist/init.sh
4644
47- VOLUME [ "/app /.mgc" , "/app /.local/share/.IdentityService" , "/app /.local/share/keyrings" ]
45+ VOLUME [ "/root /.mgc" , "/root /.local/share/.IdentityService" , "/root /.local/share/keyrings" ]
4846
4947ENTRYPOINT ["./dist/init.sh" ]
5048
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ services:
99 environment :
1010 - KEYRING_PASSWORD=changeit
1111 volumes :
12- - ./tmp/.mgc:/app /.mgc
13- - ./tmp/.IdentityService:/app /.local/share/.IdentityService
14- - ./tmp/keyrings:/app /.local/share/keyrings
12+ - ./tmp/.mgc:/root /.mgc
13+ - ./tmp/.IdentityService:/root /.local/share/.IdentityService
14+ - ./tmp/keyrings:/root /.local/share/keyrings
You can’t perform that action at this time.
0 commit comments