Files
ebook/Dockerfile
koziavin 19c8771971
Some checks failed
Deploy Application / deploy (push) Failing after 2m28s
first commit
2025-06-11 21:22:42 +04:00

30 lines
487 B
Docker

# Build stage
FROM node:20-alpine as build
WORKDIR /app
# Copy package files
COPY package.json yarn.lock ./
# 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;"]