summaryrefslogtreecommitdiff
path: root/frontend/Dockerfile
blob: 0b93a16d0d74f5cf5e8d1ace7f8581ac00d47cb3 (plain)
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
FROM node:21-alpine as builder

WORKDIR /app

COPY package.json ./
COPY package-lock.json ./
COPY src ./src/
COPY index.html ./
COPY public ./
COPY .env ./
COPY postcss.config.js ./
COPY tailwind.config.js ./
COPY tsconfig.json ./
COPY tsconfig.node.json ./
COPY vite.config.ts ./

RUN npm ci
RUN npm run build

FROM nginx:latest

WORKDIR /app

COPY --from=builder /app/dist ./
COPY ./nginx.conf /etc/nginx/conf.d/default.conf