Helpdesk-ui/Dockerfile

19 lines
377 B
Docker
Raw Normal View History

2023-08-22 09:55:29 -06:00
# ---- Base Node ----
FROM node:14 AS base
2023-08-22 09:48:55 -06:00
WORKDIR /app
2023-08-22 09:55:29 -06:00
# ---- Dependencies ----
FROM base AS dependencies
COPY package*.json ./
RUN npm ci
2023-08-22 09:48:55 -06:00
COPY . .
2023-08-22 09:55:29 -06:00
# ---- Build ----
FROM dependencies AS build
RUN npm run build
2023-08-22 09:48:55 -06:00
2023-08-22 09:55:29 -06:00
# --- 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;"]