Add dockerfile

This commit is contained in:
2025-10-01 17:13:50 -05:00
parent 121d2adbca
commit d61e01f464

15
dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:18-bullseye AS builder
RUN apt-get update && apt-get install -y default-jre
WORKDIR /app
COPY package.json package-lock.json shadow-cljs.edn ./
RUN npm install
COPY src ./src
COPY public ./public
RUN npx shadow-cljs release :app
FROM nginx:alpine
COPY --from=builder /app/public /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]