feat: public self-hosting

This commit is contained in:
2025-07-04 10:04:28 -04:00
parent 60c9cec7aa
commit a41d1ceaea
2 changed files with 24 additions and 5 deletions
+13 -5
View File
@@ -7,8 +7,16 @@ ARG VITE_API_URL
ENV VITE_API_URL=$VITE_API_URL
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app ./
EXPOSE 3000
CMD ["npx", "vite", "--port", "3000"]
# Stage 2: Serve with NGINX
FROM nginx:alpine
# Clean out default config
RUN rm /etc/nginx/conf.d/default.conf
# Copy your custom nginx config
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Copy built files from Vite
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80