Update Dockerfile

add firewall
This commit is contained in:
Olivier DEBAUCHE 2021-06-16 09:36:48 +02:00 committed by GitHub
parent 2096542673
commit 344b4a9bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@ RUN apt-get update \
&& apt-get install -y wget gnupg2 lsb-core apt-transport-https ca-certificates curl \ && apt-get install -y wget gnupg2 lsb-core apt-transport-https ca-certificates curl \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ && wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& echo "deb [ trusted=yes ] https://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \ && echo "deb [ trusted=yes ] https://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list \
&& curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
&& wget --quiet -O - https://deb.nodesource.com/setup_16.x | bash - \ && wget --quiet -O - https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get update \ && apt-get update \
&& apt-get install -y nodejs && apt-get install -y nodejs
@ -183,6 +184,12 @@ RUN mkdir -p /home/renderer/src \
&& rm -rf .git \ && rm -rf .git \
&& chmod u+x /home/renderer/src/regional/trim_osc.py && chmod u+x /home/renderer/src/regional/trim_osc.py
# Firewall configuration
RUN ufw allow ssh \
&& ufw allow http \
&& ufw allow https \
&& ufw enable
# Start running # Start running
COPY run.sh / COPY run.sh /
COPY indexes.sql / COPY indexes.sql /