mirror of
https://github.com/spliit-app/spliit.git
synced 2026-02-06 15:46:12 +01:00
* add production build * add back updates and use slim image * udpate command * ignore scripts * add workdir * fix workdirs * docker image improvements * use .example instead * use dummy data instead * remove unused env var and add comment * fix entrypoints * change name of script and add possibility for different commands * change to safer default for volume * add instructions for the dev docker container * update copy * add empty lines under topics to keep uniformity * most RUN's in a single command * add comment about volumes for dev target * remove dev workflow * remove dev workflow from readme * Prettify README --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
23 lines
444 B
Docker
23 lines
444 B
Docker
FROM node:21-slim as base
|
|
|
|
EXPOSE 3000/tcp
|
|
WORKDIR /usr/app
|
|
COPY ./ ./
|
|
|
|
RUN apt update && \
|
|
apt install openssl -y && \
|
|
apt clean && \
|
|
apt autoclean && \
|
|
apt autoremove && \
|
|
npm ci --ignore-scripts && \
|
|
npm install -g prisma && \
|
|
prisma generate
|
|
|
|
# env vars needed for build not to fail
|
|
ARG POSTGRES_PRISMA_URL
|
|
ARG POSTGRES_URL_NON_POOLING
|
|
|
|
RUN npm run build
|
|
|
|
ENTRYPOINT ["/usr/app/scripts/container-entrypoint.sh"]
|