Skip to content

Commit 2f159d5

Browse files
Updated entrypoint add /etc/haproxy/conf.d for additional configuration files
1 parent c1a71ad commit 2f159d5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ apk add --no-cache --virtual .build-deps \
4646
#
4747
# Prepare destination scratchfs
4848
#
49+
mkdir -p /scratchfs/etc/haproxy/conf.d /scratchfs/etc/ssl /scratchfs/usr/sbin /scratchfs/var/lib/haproxy/stats
50+
4951
# Create self-signed certificate
5052
openssl req -x509 -newkey rsa:4096 -nodes -keyout /scratchfs/etc/ssl/localhost.pem.key -out /scratchfs/etc/ssl/localhost.pem -days 365 -sha256 -subj "/CN=localhost"
5153
chown 1000:1000 /scratchfs/etc/ssl/localhost.pem.key /scratchfs/var/lib/haproxy /scratchfs/var/lib/haproxy/stats
@@ -216,7 +218,6 @@ ls -lh /usr/sbin/haproxy
216218
file /usr/sbin/haproxy
217219
/usr/sbin/haproxy -vv
218220

219-
mkdir -p /scratchfs/etc/haproxy/conf.d /scratchfs/etc/ssl /scratchfs/usr/sbin /scratchfs/var/lib/haproxy/stats
220221
cp /usr/sbin/haproxy /scratchfs/usr/sbin/
221222

222223
EOF

0 commit comments

Comments
 (0)