aaredb/frontend/Dockerfile
GotthardG db6164ac3f Add Dockerfiles and update package dependencies
Introduced Dockerfiles for logistics and frontend applications to streamline development and deployment. Updated package dependencies in the frontend to newer versions for improved stability and compatibility.
2025-03-14 13:47:54 +01:00

16 lines
370 B
Docker

FROM node:18
# Set working directory
WORKDIR /app
# Copy dependency files and install dependencies
COPY package*.json ./
RUN npm install
# Copy rest of the code and build the application
COPY . .
RUN npm run build
# Use a simple HTTP server to serve the built static files
EXPOSE 5173
CMD ["npx", "vite", "preview", "--port", "5173"]