mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-27 20:45:35 -04:00
fix the damn path issues
This commit is contained in:
parent
cec308167b
commit
7584f27018
1 changed files with 5 additions and 8 deletions
|
@ -4,17 +4,14 @@ FROM node:18-alpine AS builder
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package.json and package-lock.json (if present)
|
# Copy package files
|
||||||
COPY /app/package*.json ./
|
COPY restaurant/app .
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the application code
|
# Build the application
|
||||||
COPY . .
|
RUN npm run build -- --config ./webpack.config.js
|
||||||
|
|
||||||
# Build the application using webpack
|
|
||||||
RUN npm run build -- --config app/webpack.config.js
|
|
||||||
|
|
||||||
# Use an Nginx base image to serve the static files
|
# Use an Nginx base image to serve the static files
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue