Files
mc-computer-craft-api-frontend/Dockerfile
T
johannesbot c00902f403
Build and Deploy / build (push) Successful in 36s
Build and Deploy / deploy (push) Successful in 22s
test
2026-05-29 19:45:31 +02:00

17 lines
381 B
Docker

# ---- Build stage -----------------------------------------------------
FROM node:22-alpine AS build
WORKDIR /app
# Backend URLs are baked in at build time (Vite inlines VITE_* variables).
ARG VITE_API_BASE=https://localhost:3000
ARG VITE_WS_BASE
ENV VITE_API_BASE=$VITE_API_BASE
ENV VITE_WS_BASE=$VITE_WS_BASE
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build