mirror of
https://github.com/XFox111/MuiCharts.git
synced 2026-04-22 06:51:05 +03:00
- Implemented actual API for frontend
- Reorganized and refactored frontend project
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# Use the official Node.js 20 image as the base image
|
||||
FROM node:20 as builder
|
||||
|
||||
ARG API_URL=http://localhost:5152
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
|
||||
@@ -13,6 +15,8 @@ RUN yarn install
|
||||
# Copy the app source code to the working directory
|
||||
COPY . .
|
||||
|
||||
RUN echo "VITE_API_URL=${API_URL}" > .env.production
|
||||
|
||||
# Build the app
|
||||
RUN yarn build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user