mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-29 14:16:36 +00:00
Use zram
This commit is contained in:
parent
a09187e3e5
commit
86fb91ec9d
10
Dockerfile
10
Dockerfile
@ -36,6 +36,7 @@ COPY --from=builder /usr/src/clicklock/clicklock /usr/bin/clicklock
|
|||||||
|
|
||||||
# Etcher configuration script
|
# Etcher configuration script
|
||||||
COPY update-config-and-start.js /usr/src/app/
|
COPY update-config-and-start.js /usr/src/app/
|
||||||
|
COPY zram.sh /usr/src/app/
|
||||||
|
|
||||||
COPY --from=builder /usr/src/app/dist/linux-arm64-unpacked/resources/app /usr/src/app
|
COPY --from=builder /usr/src/app/dist/linux-arm64-unpacked/resources/app /usr/src/app
|
||||||
COPY --from=builder /usr/src/app/node_modules/electron/ /usr/src/app/node_modules/electron
|
COPY --from=builder /usr/src/app/node_modules/electron/ /usr/src/app/node_modules/electron
|
||||||
@ -43,4 +44,11 @@ WORKDIR /usr/src/app/node_modules/.bin
|
|||||||
RUN ln -s ../electron/cli.js electron
|
RUN ln -s ../electron/cli.js electron
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
CMD node /usr/src/app/update-config-and-start.js
|
RUN \
|
||||||
|
apt-get update \
|
||||||
|
&& apt-get install -y kmod \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
CMD \
|
||||||
|
./zram.sh \
|
||||||
|
&& node /usr/src/app/update-config-and-start.js
|
||||||
|
@ -14,6 +14,7 @@ services:
|
|||||||
labels:
|
labels:
|
||||||
io.balena.features.dbus: 1
|
io.balena.features.dbus: 1
|
||||||
io.balena.features.supervisor-api: 1
|
io.balena.features.supervisor-api: 1
|
||||||
|
io.balena.features.kernel-modules: 1
|
||||||
volumes:
|
volumes:
|
||||||
- 'etcher_pki:/root/.pki'
|
- 'etcher_pki:/root/.pki'
|
||||||
- 'etcher_cache:/root/.cache'
|
- 'etcher_cache:/root/.cache'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user