omni-tools/Dockerfile
Ibrahima G. Coulibaly 2755590fce
Some checks are pending
CI / test-and-build (push) Waiting to run
CI / Playwright Tests (push) Waiting to run
CI / Build and Push Multi-Platform Docker Image (push) Blocked by required conditions
CI / deploy (push) Blocked by required conditions
fix: #224
2025-07-25 17:48:42 +01:00

20 lines
424 B
Docker

FROM node:20 AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:alpine
COPY mime.types /etc/nginx/mime.types
COPY --from=build /app/dist /usr/share/nginx/html
RUN sed -i 's|index index.html index.htm;|index index.html index.htm;\n try_files $uri $uri/ /index.html;|' /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]