Skip to content
Snippets Groups Projects
Commit 92714474 authored by Milan Bohacek's avatar Milan Bohacek
Browse files

fix Dockerfile

parent b209b008
No related branches found
No related tags found
No related merge requests found
Pipeline #600424 failed
# Stage 1: Builder
FROM node:18 AS builder FROM node:18 AS builder
WORKDIR /app WORKDIR /app
COPY package.json ./package.json COPY package.json package-lock.json ./
COPY package-lock.json ./package-lock.json
RUN npm install --ignore-scripts --legacy-peer-deps RUN npm install --legacy-peer-deps
COPY . . COPY . .
# Run the production build
RUN npm run build-prod RUN npm run build-prod
FROM nginx:alpine as production # Stage 2: Production
FROM nginx:alpine AS production
WORKDIR /usr/share/nginx/html
# Copy custom NGINX configuration
COPY default.conf /etc/nginx/conf.d/default.conf COPY default.conf /etc/nginx/conf.d/default.conf
# Copy built application from builder stage
COPY --from=builder /app/dist/frontend/browser /usr/share/nginx/html COPY --from=builder /app/dist/frontend/browser /usr/share/nginx/html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment