Skip to content

Commit

Permalink
Make image smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Jan 26, 2024
1 parent e14f9f8 commit 1254ea5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
5 changes: 1 addition & 4 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ ARG NETWORK
USER root
RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
curl \
gettext\
jq \
nginx \
nodejs \
procps \
sudo \
supervisor \
vim-tiny \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -s /bin/false nginx

Expand All @@ -51,9 +49,8 @@ COPY --from=builder /usr/src/app/wizard/build /usr/local/wizard
COPY --from=builder /usr/src/monitor /usr/local/monitor

COPY startLighthouse.sh /opt/lighthouse
COPY reload-certs.sh /opt/lighthouse/reload-certs.sh
COPY monitor/settings/defaultsettings-${NETWORK}.json /opt/lighthouse/defaultsettings.json
RUN chmod a+x /opt/lighthouse/startLighthouse.sh /opt/lighthouse/reload-certs.sh
RUN chmod a+x /opt/lighthouse/startLighthouse.sh
COPY supervisord.conf /etc/supervisord.conf
COPY nginx.conf /etc/nginx/

Expand Down
21 changes: 0 additions & 21 deletions build/reload-certs.sh

This file was deleted.

10 changes: 1 addition & 9 deletions build/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,4 @@ autostart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0

[program:reload-certs]
command=/opt/lighthouse/reload-certs.sh
autostart=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
stderr_logfile_maxbytes=0

0 comments on commit 1254ea5

Please sign in to comment.