aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: d31173bbf089a26d0c5b8130f5e1f7f79e8a3698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]