Files
unduck/Dockerfile
Joshua Higgins Verified 7a41e74e66
All checks were successful
Docker Image CI / build-and-push (push) Successful in 4m6s
feat: custom
2026-05-02 17:19:55 -04:00

20 lines
344 B
Docker

# syntax=docker/dockerfile:1
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginxinc/nginx-unprivileged:stable-alpine AS runtime
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]