Skip to content

Commit 45977c7

Browse files
authored
Merge pull request #80 from linuxserver/cleanup
add proper cleanup logic
2 parents 31c2d54 + dc323fd commit 45977c7

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ RUN \
3636
echo 'pref("trailhead.firstrun.branches", "nofirstrun-empty");' >> ${FIREFOX_SETTING} && \
3737
echo 'pref("browser.aboutwelcome.enabled", false);' >> ${FIREFOX_SETTING} && \
3838
echo "**** cleanup ****" && \
39+
apt-get autoclean && \
3940
rm -rf \
41+
/config/.cache \
42+
/config/.launchpadlib \
43+
/var/lib/apt/lists/* \
44+
/var/tmp/* \
4045
/tmp/*
4146

4247
# add local files
4348
COPY /root /
4449

4550
# ports and volumes
46-
EXPOSE 3000
51+
EXPOSE 3001
4752

4853
VOLUME /config

Dockerfile.aarch64

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ RUN \
3636
echo 'pref("trailhead.firstrun.branches", "nofirstrun-empty");' >> ${FIREFOX_SETTING} && \
3737
echo 'pref("browser.aboutwelcome.enabled", false);' >> ${FIREFOX_SETTING} && \
3838
echo "**** cleanup ****" && \
39+
apt-get autoclean && \
3940
rm -rf \
41+
/config/.cache \
42+
/config/.launchpadlib \
43+
/var/lib/apt/lists/* \
44+
/var/tmp/* \
4045
/tmp/*
4146

4247
# add local files
4348
COPY /root /
4449

4550
# ports and volumes
46-
EXPOSE 3000
51+
EXPOSE 3001
4752

4853
VOLUME /config

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
440440

441441
## Versions
442442

443+
* **16.08.25:** - Add proper cleanup logic for builds.
443444
* **01.07.25:** - Add Kasm branch.
444445
* **23.06.25:** - Rebase to Selkies, HTTPS is now required.
445446
* **25.09.24:** - Rebase to Ubuntu Noble.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ init_diagram: |
111111
"firefox:latest" <- Base Images
112112
# changelog
113113
changelogs:
114+
- {date: "16.08.25:", desc: "Add proper cleanup logic for builds."}
114115
- {date: "01.07.25:", desc: "Add Kasm branch."}
115116
- {date: "23.06.25:", desc: "Rebase to Selkies, HTTPS is now required."}
116117
- {date: "25.09.24:", desc: "Rebase to Ubuntu Noble."}

0 commit comments

Comments
 (0)