Helpdesk-ui/Dockerfile
2023-08-22 09:55:29 -06:00

19 lines
377 B
Docker

# ---- Base Node ----
FROM node:14 AS base
WORKDIR /app
# ---- Dependencies ----
FROM base AS dependencies
COPY package*.json ./
RUN npm ci
COPY . .
# ---- Build ----
FROM dependencies AS build
RUN npm run build
# --- Release with Nginx ----
FROM nginx:1.16.0-alpine AS release
COPY --from=build /app/build /usr/share/nginx/html/
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]