Files
frontend/Dockerfile.web

16 lines
255 B
Docker
Raw Permalink Normal View History

FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npx expo export --platform web --output-dir dist-web
FROM nginx:1.27-alpine
COPY --from=builder /app/dist-web /usr/share/nginx/html
EXPOSE 80