vocabulary/web/Dockerfile

15 lines
405 B
Docker
Raw Normal View History

2026-12-03 00:16:47 +03:00
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
# NEXT_PUBLIC_* values are compiled into the static files
ARG NEXT_PUBLIC_API_URL=https://api.mmkilic.com/api-vocab
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
RUN npm run build
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/out /usr/share/nginx/html
EXPOSE 80