mirror of
https://ark.sudovanilla.org/Korbs/Netweak-Agent-Docker.git
synced 2024-12-22 19:43:52 +00:00
Add Cleanup
This commit is contained in:
parent
982d883858
commit
6f59b3ae2e
7
Dockerfile
Normal file → Executable file
7
Dockerfile
Normal file → Executable file
|
@ -1,5 +1,5 @@
|
||||||
# Use Debain 12 as the Base
|
# Use Debain 12 as the Base
|
||||||
FROM debian:12-slim
|
FROM ark.sudovanilla.org/korbs/debian-slim:amd64
|
||||||
|
|
||||||
# Run as root
|
# Run as root
|
||||||
USER root
|
USER root
|
||||||
|
@ -7,12 +7,15 @@ USER root
|
||||||
# Start Cron
|
# Start Cron
|
||||||
ENTRYPOINT cron start && tail -f /var/log/cron.log
|
ENTRYPOINT cron start && tail -f /var/log/cron.log
|
||||||
|
|
||||||
# Install nessesary packages
|
# Install necessary packages
|
||||||
RUN apt-get update && apt-get -y install libcurl4-openssl-dev g++ ca-certificates curl gnupg procps iputils-ping wget net-tools iproute2
|
RUN apt-get update && apt-get -y install libcurl4-openssl-dev g++ ca-certificates curl gnupg procps iputils-ping wget net-tools iproute2
|
||||||
|
|
||||||
# Cron
|
# Cron
|
||||||
RUN apt-get -y install -qq --force-yes cron
|
RUN apt-get -y install -qq --force-yes cron
|
||||||
RUN touch /var/log/cron.log
|
RUN touch /var/log/cron.log
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# The server admin(you) is expected to use "volume" configuration to override the Token
|
# The server admin(you) is expected to use "volume" configuration to override the Token
|
||||||
RUN curl -sSL netweak.sh | bash -s TOKEN_REPLACEMENT
|
RUN curl -sSL netweak.sh | bash -s TOKEN_REPLACEMENT
|
Loading…
Reference in a new issue