Remove build process from docker file

This commit is contained in:
Pranav 2025-10-10 16:38:15 +05:30
parent 5491637703
commit cc2b1f4d59
2 changed files with 3 additions and 18 deletions

View File

@ -2,28 +2,13 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=20-bullseye
# Build stage
FROM node:${VARIANT} AS builder
FROM node:${VARIANT}
WORKDIR /app
COPY . .
RUN yarn install
RUN yarn build
# Production stage
FROM node:${VARIANT}-slim AS production
# Create app directory
WORKDIR /app
# Copy built application from builder stage
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/yarn.lock ./yarn.lock
# Install only production dependencies
RUN yarn install --production
# Expose port for http
EXPOSE 4173

View File

@ -46,6 +46,7 @@
"qrcode": "^1.5.3",
"tailwindcss": "^3.3.1",
"theme-change": "^2.5.0",
"vite": "^4.4.9",
"vite-plugin-vue-layouts": "^0.7.0",
"vue": "^3.2.45",
"vue-i18n": "^9.2.2",
@ -71,7 +72,6 @@
"unplugin-auto-import": "^0.13.0",
"unplugin-vue-components": "^0.23.0",
"unplugin-vue-define-options": "1.1.4",
"vite": "^4.4.9",
"vite-plugin-pages": "^0.28.0",
"vue-json-viewer": "3",
"vue-tsc": "^1.0.12"