mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-09-11 01:25:35 +00:00
14 lines
365 B
Docker
14 lines
365 B
Docker
FROM node:20-alpine AS frontend-builder
|
|
WORKDIR /build/frontend
|
|
COPY frontend/package.json ./
|
|
RUN npm install
|
|
COPY frontend/ ./
|
|
ARG VITE_APP_HOSTNAME
|
|
ENV VITE_APP_HOSTNAME=$VITE_APP_HOSTNAME
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=frontend-builder /build/frontend/dist /usr/share/nginx/html
|
|
COPY nginx.website.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|