]> git.ipfire.org Git - thirdparty/FORT-validator.git/commitdiff
Update Dockerfile
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 7 Feb 2023 20:36:07 +0000 (14:36 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Tue, 7 Feb 2023 21:17:20 +0000 (15:17 -0600)
docker/Dockerfile

index 3fae50db2501907296415c3f7f7b77f7be93329a..4707a3464199b41defebb406753eeb994608a2e7 100644 (file)
@@ -1,6 +1,6 @@
 #--- Alpine build container ---
 FROM alpine:latest AS builder
-ARG FORT_VERSION=1.5.3
+ARG FORT_VERSION=1.5.4
 
 # Install compiler and dependencies
 RUN apk --update --no-cache add build-base autoconf automake pkgconfig jansson-dev check-dev \
@@ -22,15 +22,16 @@ FROM alpine:latest
 # Install dependencies
 RUN apk --update --no-cache add openssl jansson rsync libexecinfo tini libxml2 libcurl
 
-# Install FORT binaries
+# Install FORT
 COPY --from=builder /usr/local/bin/fort /usr/local/bin/fort
 COPY --from=builder /usr/local/share/man/man8/fort.8 /usr/local/share/man/man8/fort.8
 
 # Create required directories
-RUN mkdir -p /var/local/fort && mkdir -p /etc/fort
+RUN mkdir -p /var/local/fort && mkdir -p /etc/fort/tal
 
-# Create a default configuration file
-RUN echo '{"tal":"/etc/fort/tal","local-repository":"/var/local/fort"}' > /etc/fort/fort.conf
+# Create default configuration
+RUN yes yes | fort --init-tals --tal /etc/fort/tal
+RUN echo '{ "tal":"/etc/fort/tal", "local-repository":"/var/local/fort" }' > /etc/fort/fort.conf
 
 
 # Run FORT via TINI