diff options
| author | Max <Max-TheCat@users.noreply.github.com> | 2024-01-11 15:25:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-11 15:25:08 -0500 |
| commit | 76427c9f130adb90f90cccc84b92dd49f5147ed5 (patch) | |
| tree | 5e1ac61ffaff7040e3b85a98cee9f4fd11dac54a /Dockerfile | |
| parent | ddce4d0bdbf657de1bf11ce2722ed0435868e41d (diff) | |
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 <sebastien@castiel.me>
---------
Co-authored-by: Maxime Jacob <mjacob-no-reply@proton.me>
Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 17 |
1 files changed, 17 insertions, 0 deletions
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"] |
