From 76427c9f130adb90f90cccc84b92dd49f5147ed5 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 11 Jan 2024 15:25:08 -0500 Subject: Docker container version (#39) * + Dockerfile and compose file + Scripts dir and startup script + Build image npm script * * Moves env to file * + Tags image with info from package.json * Moves image creation to script * Updates README * Update README.md Co-authored-by: Sebastien Castiel --------- Co-authored-by: Maxime Jacob Co-authored-by: Sebastien Castiel --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0966017 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:slim + +EXPOSE 3000/tcp +WORKDIR /usr/app +COPY ./ ./ + +SHELL ["/bin/bash", "-c"] + +RUN apt update && \ + apt install openssl -y && \ + apt clean && \ + apt autoclean && \ + apt autoremove && \ + npm install --ignore-scripts && \ + npm install -g prisma + +ENTRYPOINT ["/bin/bash", "-c", "scripts/image-startup.sh"] -- cgit v1.3