Merge pull request 'Fixed dockerfile paths' (#33) from endpoints into main
Reviewed-on: #33
This commit was merged in pull request #33.
This commit is contained in:
@@ -4,13 +4,13 @@ FROM node:20-alpine AS builder
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy dependency definitions
|
# Copy dependency definitions
|
||||||
COPY package*.json ./
|
COPY PostFundManagement.ConsoleUI/package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm ci || npm install
|
RUN npm ci || npm install
|
||||||
|
|
||||||
# Copy application source
|
# Copy application source
|
||||||
COPY . .
|
COPY PostFundManagement.ConsoleUI/ .
|
||||||
|
|
||||||
# Build Vite application for production
|
# Build Vite application for production
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
@@ -22,11 +22,11 @@ FROM nginx:alpine
|
|||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Copy compiled static assets from build stage
|
# Copy compiled static assets from build stage
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/PostFundManagement.ConsoleUI/dist /usr/share/nginx/html
|
||||||
|
|
||||||
# Copy entrypoint script for dynamic runtime environment variables
|
# Copy entrypoint script for dynamic runtime environment variables
|
||||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
COPY docker-entrypoint.sh /app/PostFundManagement.ConsoleUI/docker-entrypoint.sh
|
||||||
RUN chmod +x /docker-entrypoint.sh
|
RUN chmod +x /app/PostFundManagement.ConsoleUI/docker-entrypoint.sh
|
||||||
|
|
||||||
# Expose port 3000
|
# Expose port 3000
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user