Files
ebook/Dockerfile
koziavin f150cd1ba4
Some checks failed
Deploy Application / deploy (push) Failing after 43s
first commit
2025-06-11 21:59:45 +04:00

30 lines
495 B
Docker

# Build stage
FROM node:20-alpine as build
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built assets from build stage
COPY --from=build /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]