diff --git a/src/singularity_modules/fastp/0.19.7/build.sh b/src/singularity_modules/fastp/0.19.7/build.sh
index 58127ff089d25f62c22269a935e630749efc3356..be161e19b88586b1469fdfd4c21c87f690cdd669 100755
--- a/src/singularity_modules/fastp/0.19.7/build.sh
+++ b/src/singularity_modules/fastp/0.19.7/build.sh
@@ -1,3 +1,3 @@
 #/bin/sh
-sudo singularity build --force bin/fastp:0.19.7.img docker://quay.io/biocontainers/fastp:0.19.7--hdbcaa40_0 && \
+sudo singularity build --force bin/fastp:0.19.7.img src/singularity_modules/fastp/0.19.7/fastp.def && \
 singularity sign bin/fastp:0.19.7.img
diff --git a/src/singularity_modules/fastp/0.19.7/fastp.def b/src/singularity_modules/fastp/0.19.7/fastp.def
new file mode 100644
index 0000000000000000000000000000000000000000..eca9d45fae1debeb34329064e731376f42e5e69c
--- /dev/null
+++ b/src/singularity_modules/fastp/0.19.7/fastp.def
@@ -0,0 +1,15 @@
+Bootstrap: docker
+From: docker://quay.io/biocontainers/fastp:0.19.7--hdbcaa40_0
+
+%labels
+MAINTAINER Laurent Modolo
+
+%post
+mkdir -p /sps /pbs /scratch
+FASTP_VERSION=0.19.7
+
+%environment
+export FASTP_VERSION=0.19.7
+
+%runscript
+exec /bin/bash "$@"