source: Dockerfile@ 107303c

main
Last change on this file since 107303c was 5750945, checked in by Tome <gjorgievtome@…>, 7 months ago

Dockerize app

  • Property mode set to 100644
File size: 485 bytes
Line 
1FROM node:20-alpine AS builder
2
3WORKDIR /app
4
5COPY package.json package-lock.json* ./
6RUN npm ci
7
8COPY . .
9RUN npm run build
10
11FROM node:20-alpine
12
13WORKDIR /app
14
15RUN apk add --no-cache postgresql-client
16
17COPY --from=builder /app/dist ./dist
18COPY --from=builder /app/node_modules ./node_modules
19
20COPY database ./database
21
22COPY package.json ./
23COPY drizzle.config.ts ./
24COPY docker-entrypoint.sh ./
25
26RUN chmod +x ./docker-entrypoint.sh
27
28EXPOSE 8080
29
30ENTRYPOINT ["./docker-entrypoint.sh"]
Note: See TracBrowser for help on using the repository browser.