hub-site/Dockerfile
mrrpnya defaad6983
Some checks are pending
Run Tests / Prepare environment (push) Waiting to run
Run Tests / Run unit tests (push) Blocked by required conditions
Run Tests / Run E2E tests (chrome) (push) Blocked by required conditions
Run Tests / Run E2E tests (edge) (push) Blocked by required conditions
Run Tests / Run E2E tests (firefox) (push) Blocked by required conditions
.
2025-04-05 18:06:49 -07:00

21 lines
No EOL
476 B
Docker
Executable file

# build stage
FROM node:lts-alpine AS build-stage
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm i
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine AS production-stage
# Remove default Nginx index page
RUN rm -rf /usr/share/nginx/html/*
# Copy built files from build stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
# Use a non-root user for security
USER 101
CMD ["nginx", "-g", "daemon off;"]