Files
TelegramMemeVault/miniapp/Dockerfile
T

19 lines
763 B
Docker
Raw Permalink Normal View History

2026-10-07 02:17:30 +04:00
# syntax=docker/dockerfile:1.7
# ── Build ─────────────────────────────────────────────────────────────────────
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN --mount=type=cache,target=/root/.npm \
npm ci
COPY . .
RUN npm run build
# ── Runtime ───────────────────────────────────────────────────────────────────
FROM nginx:1.27-alpine AS runtime
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80