-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (19 loc) · 802 Bytes
/
Dockerfile
File metadata and controls
20 lines (19 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM php:8.1-fpm
RUN apt-get update && apt-get install -y \
&& mkdir -p /usr/src/php/ext/pkcs \
&& curl -fsSL https://github.com/gamringer/php-pkcs11/archive/refs/heads/master.tar.gz | tar xvz -C /usr/src/php/ext/pkcs --strip 1 \
&& cd /usr/src/php/ext/pkcs \
&& phpize \
&& ./configure \
&& make \
&& docker-php-ext-install pkcs
RUN apt-get install -y softhsm2 \
&& apt-get install -y opensc \
&& mkdir -p /home/user/.softhsm \
&& mkdir -p ~/.config/softhsm2 \
&& touch ~/.config/softhsm2/softhsm2.conf \
&& echo "directories.tokendir = /home/user/.softhsm \
objectstore.backend = file \
log.level = INFO \
slots.removable = false \
slots.mechanisms = ALL" > softhsm2.conf