16 lines
325 B
Docker
16 lines
325 B
Docker
|
|
# Dockerfile for frontend
|
||
|
|
FROM node:22-alpine AS builder
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
COPY package.json yarn.lock* ./
|
||
|
|
RUN yarn install --frozen-lockfile 2>/dev/null || npm install
|
||
|
|
|
||
|
|
COPY . .
|
||
|
|
RUN npm run build
|
||
|
|
|
||
|
|
FROM nginx:alpine
|
||
|
|
COPY --from=builder /app/build /usr/share/nginx/html
|
||
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||
|
|
EXPOSE 3001
|