forked from techsavvyash/oidc-lite
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (19 loc) · 653 Bytes
/
Dockerfile
File metadata and controls
38 lines (19 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM node:18-alpine
WORKDIR /src
COPY package*.json ./
RUN yarn install
RUN npx husky install
COPY . .
RUN mkdir -p .husky && \
echo '#!/bin/sh\n. "$(dirname "$0")/_/husky.sh"\nnpm test' > .husky/pre-commit && \
echo '#!/bin/sh\n. "$(dirname "$0")/_/husky.sh"\nnpm run lint' > .husky/pre-push && \
chmod +x .husky/pre-commit .husky/pre-push
ARG DATABASE_FILE
# Create the prisma directory and touch the dev.db file
RUN mkdir -p prisma && touch prisma/dev.db
RUN yarn prisma migrate deploy
RUN npx prisma generate
RUN yarn build
EXPOSE 3001
# Run the OIDC Lite application
CMD ["yarn", "start:prod", "--app", "oidc-lite"]